Not sure if it is 2.0 specific - but I'm having a problem whereby, for example, the YES/NO buttons in the MessageBox.confirm() dialog does not show up in IE 6.0 but works fine for IE 7.0.
Weird thing is that the msg-box sample works fine... hmmm... :-?
Wondering if anyone else encountered this problem? And if there's a simple fix to it.
Okay, after much testing, I've come across a relatively consistent test case.
With the msg-box.html, if you click on the "Confirm" sample first, then the "Icons" sample will not show the OK button.
Now, refresh the browser, click on "Icons" sample first (OK button now appears), then click on the "Confirm" sample - YES/NO buttons no longer appears.
Refresh the browser again, click on "Progress Dialog", then click on either "Confirm", "Alert", "Icon" or any samples which are supposed to have buttons - no buttons will appear. In general, if the first MessageBox to appear does not have buttons, subsequent MessageBox calls will not show buttons.
So now, my rather silly workaround for now is to immediately show and hide a confirm dialog upon page loading.
Downside is that subsequent MessageBox.alert will not have the OK button - but at least the little "x" at the top-right corner still appears, and will suffice for now until this strange bug is quashed.
Hmm, how odd indeed - now the msg-box.html doesn't exhibit the problem even with the yui adapters. Perhaps I was mistaken when I thought it broke by including those two files instead of ext-base.js.
How do we change the doctype?
I have actually noticed this same issue independently, and yes, it is very strange and seems to occur somewhat inconsistently for me. I believe it is 2.0 specific, and we are looking into it.
This has been fixed in SVN.
The problem was related to multiple MessageBoxes that use different sets of buttons. As soon as some buttons were initially hidden by one window, they would no longer show up again on subsequent windows when they were supposed to. There seems to be an issue with how IE deals with setting the buttons to display:none in this case, so it has been switched to use offsets when hiding the buttons, which seems to have solved it. Let me know if you still have any issues with this.
ext-base replaces the combination of the 2 yui files. Can you produce a small sample that causes the problem? Does it go away if you change the doctype?
Okay, managed to reproduce the missing buttons problem in IE6.0 by including yui-utilities.js and ext-yui-adapter.js, instead of ext-base.js.
Btw, if all old code is migrated to use purely Ext without any direct yui reference - does ext-base.js suffice? i.e. can we safely do away with yui-utilities.js and ext-yui-adapter.js?
Hmm, can't seem to produce a simple case that exhibits this problem.
Perhaps another noteworthy observation is that if I were to immediately show a confirm messagebox right after loading up the webpage, subsequent messagebox will have the buttons appear correctly.
Maybe the relatively complex layouts that I'm using could have caused some internal style consistencies for IE6? Weird indeed.
Thanks, just tested with IE6 - seems to resolve the problem quite well. Many thanks.
1.1 Package dependencies - PagingToolbar not a constructor - sp has no properties
Nested grid within Expander grid
|