I need to track size change of div control. Is there are any event like onresize that works for div ? How could I do this? It should works in IE and firefox. Thanks
Asked
Active
Viewed 1,024 times
0
-
Is the div changing size due to the window being resized? E.g. fluid layout. Or are you manually changing the div's size? Also, are you using any JS libraries? – Oscar Godson Nov 04 '10 at 17:16
-
div's size changed by SharePoint script. So, I can't add any function call to this script. Also, I use jQuery. – Anton Nov 05 '10 at 09:54
-
Possible duplicate of [How to detect DIV's dimension changed?](http://stackoverflow.com/questions/6492683/how-to-detect-divs-dimension-changed) – nkron Apr 10 '16 at 15:01
1 Answers
0
The only way to do it is to check size of div with short period of time. Anyway you will not get it smooth.
Eldar Djafarov
- 21,567
- 2
- 32
- 27