You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey all, I was using this library for a while until I realized yesterday I could use the ResizeSensor class from the css-element-queries library to achieve the same results. I can't tell if it's faster or not though, but it seems like unless something like this is already being done under the hood of this library then it has to be faster.
I'm not quite sure how ResizeSensor does the magic it does, but it provides a hook into a very fast and reliable individual element resize event. Here's a jsfiddle illustrating what I mean. The way I have done it there makes some assumptions as it depends on the user setting up their varying-height columns to contain a single element and for that single element's height to be accurately represented by the clientHeight variable (i.e. no borders).
However, despite dealing with those assumptions, I think it might be faster than this library. Am I wrong? Are you all already doing something like this?
Also, sorry if this is the wrong place to post a question like this. Please let me know where I should post it though!
The text was updated successfully, but these errors were encountered:
Hey all, I was using this library for a while until I realized yesterday I could use the ResizeSensor class from the css-element-queries library to achieve the same results. I can't tell if it's faster or not though, but it seems like unless something like this is already being done under the hood of this library then it has to be faster.
I'm not quite sure how ResizeSensor does the magic it does, but it provides a hook into a very fast and reliable individual element resize event. Here's a jsfiddle illustrating what I mean. The way I have done it there makes some assumptions as it depends on the user setting up their varying-height columns to contain a single element and for that single element's height to be accurately represented by the clientHeight variable (i.e. no borders).
However, despite dealing with those assumptions, I think it might be faster than this library. Am I wrong? Are you all already doing something like this?
Also, sorry if this is the wrong place to post a question like this. Please let me know where I should post it though!
The text was updated successfully, but these errors were encountered: