PDA

View Full Version : [FIXED][3.0] Unable to hide a message box



ds0870
16 Apr 2009, 7:34 AM
Hi,

We just pulled the latest v3 update from the svn. The update removed the auto-hide of a message box when hitting a Yes or No button on the box. So I added a line of code to manually hide it. It still doesn't work.

Also the look of a message box is broken in IE. Please run the following sample code for more details.

Here is the code:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="ext/resources/css/ext-all.css">
<script type="text/javascript" src="ext/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="ext/ext-all-debug.js"></script>
<title id="page-title">Message Box</title>
<script type="text/javascript">
Ext.onReady(function() {

Ext.Msg.show({
title:'Test Window',
msg: 'Would you like to save your changes?',
buttons: Ext.Msg.YESNO,
fn: function(buttonId) {
Ext.Msg.hide();
}
});
});
</script>
</head>
<body>
</body>
</html>Thanks.

evant
16 Apr 2009, 12:14 PM
This should be fixed in SVN.

ds0870
16 Apr 2009, 1:03 PM
Thanks. Auto-hide of a message box works fine now when hitting a button.

But the look of the message box is still not right in IE 6. Please see the screenshot.

evant
16 Apr 2009, 1:06 PM
Don't have IE6 on my laptop, I'll check this out when I get back from the conference ;)

Condor
16 Apr 2009, 10:19 PM
You don't need IE6 for that.

Not only IE6, but also IE7 (both standards and quirks mode) behaves incorrectly (but IE8 standards, quirks and compatibility mode are correct).

ps. Have you tried IETester (http://www.my-debugbar.com/wiki/IETester/HomePage)?

evant
17 Apr 2009, 2:24 PM
Yeah, I was at the airport and about to leave ;)

Anyway, I'm home now so I'll have a look.