Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cancelling the OnResize event
Message
From
18/01/2012 10:05:20
 
 
To
18/01/2012 09:52:51
General information
Forum:
Javascript
Category:
Other
Miscellaneous
Thread ID:
01533040
Message ID:
01533193
Views:
26
>In IE, it fires multiple times per 1 pixel. In other browser, it fires only once per pixel. Based on what I read, this just depends on how the browser's manufacturers has their view on on the resize should work.

http://www.quirksmode.org/dom/events/resize.html
states:
Amount of events
=============

But how many events fire, and when? On Windows 7 and Mac 10.6 all browsers fire many events during the resize action, except Opera Mac, which also fires many events, but only when the resize action has ended.

Windows XP
----------------
On Windows XP, if you switch “Show window contents while dragging” off, all browsers fire one resize event at the end of the resize (except for IE 5.5 and 6, which fire two).
  In IE, Safari, and Chrome many resize events fire as long as the user continues resizing the window.
  Opera uses as many resize events, but fires them all at the end of the resizing.
  Firefox fires one resize event at the end of the resizing.
It looks like you can't count on a pixel-by-pixel resize() firing.
One way could be to store .minWidth and .maxWidth somewhere in the DOM and test in resize() if dimensions are larger and smaller, then get back to min/max.

should work on end-of-resize firing, maybe not on pixel-by-pixel resize() firing.
Thierry Nivelet
FoxinCloud
Give your VFP application a second life, web-based, in YOUR cloud
http://foxincloud.com/
Never explain, never complain (Queen Elizabeth II)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform