Closed lewang closed 9 years ago
That is a really nice SO answer. Thanks for this.
I've force pushed an update. "offset" no longer occurs in the code.
Thanks!
You're up on 2.2.1
.
@lewang To support fractional sizes / zoom, we've moved to getBoundingClientRect()
. Before I release, can you recall the situation in which offsetHeight/Width
was required? We can't reproduce it.
I don't recall this context, sorry.
We ran into a situation where the offsetWidth was capped by the parent, so the text didn't resize properly.
According to this: http://stackoverflow.com/questions/21064101/understanding-offsetwidth-clientwidth-scrollwidth-and-height-respectively , scroll* should be used in this context anyway.