0

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.

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Anton
  • 1
  • 1
  • 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 Answers1

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
  • 23,327
  • 2
  • 33
  • 27