#15010 closed defect (fixed)
Dialog: _onShow gets called twice due to the initial layout causing a node resize (IE7)
Reported by: | DJ Mountney | Owned by: | bill |
---|---|---|---|
Priority: | undecided | Milestone: | 1.6.3 |
Component: | Dijit | Version: | 1.6.1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Repro Code:
var dialog = new dijit.Dialog({content: 'Testing', onShow: function(){alert('Show');}}); dialog.startup(); dialog.show();
The second _onShow is being called by the resize() method in ContentPaneResizeMixin?
The first _onShow calls layout(), which ends up causing this.domNode.onresize to fire in IE7 before this._wasShown is set to true at the end of _onShow() in the ContentPaneResizeMixin?
Also reproed in 1.7.2
Change History (6)
comment:1 Changed 10 years ago by
Summary: | In MSIE 7, _onShow gets called twice on dijit.Dialogs due to the initial layout causing a node resize → Dialog: _onShow gets called twice due to the initial layout causing a node resize (IE7) |
---|
comment:2 Changed 10 years ago by
Owner: | set to bill |
---|---|
Resolution: | → fixed |
Status: | new → closed |
In [28193]:
comment:6 Changed 8 years ago by
Milestone: | 1.8 → 1.6.3 |
---|
Note: See
TracTickets for help on using
tickets.
I'll try to reproduce but in the future please attach test cases using the "attach file" button, thanks.
PS: OK, it reproduces