Open
Bug 1005947
Opened 10 years ago
Updated 2 years ago
onresize event is fired twice
Categories
(Core :: DOM: Events, defect, P5)
Tracking
()
UNCONFIRMED
People
(Reporter: hiremathprashants, Unassigned)
Details
Attachments
(1 file)
311 bytes,
text/html
|
Details |
User Agent: Mozilla/5.0 (Windows NT 6.1; rv:29.0) Gecko/20100101 Firefox/29.0 (Beta/Release) Build ID: 20140421221237 Steps to reproduce: I have registered onresize event on body tag, whenever i resize(maximize/RestoreDown) the browser window onresize event should be fired. Actual results: onresize event is fired, but rather than firing only once it is fired twice whenever i maximize or Restore Down my browser window. So 1) on Restore Down Browser Window : onresize event is fired twice. 2) on maximise Browser Window : onresize event is fired twice. Expected results: onresize event should have been fired only once i.e once for Restore Down Browser window and once for Maximise Brower window. Chrome Browser behaves normally and fires event only once.
Reporter | ||
Updated•10 years ago
|
Component: General → DOM: Events
Comment 1•10 years ago
|
||
What are the window sizes (innerWidth/innerHeight) you see before you maximize and during the two event firings?
Reporter | ||
Comment 2•10 years ago
|
||
Hi Boris, window size before I maximize are : innerWidth:1066 innerHeight:551 When i maximize window in both the events I'm getting same innerWidth and innerHeight i.e innerWidht:1440 innerHeight:789
Comment 3•6 years ago
|
||
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046 Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5. If you have questions, please contact :mdaly.
Priority: -- → P5
Comment 4•5 years ago
|
||
I just tried in Chrome on macOS and I get two events too.
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•