Sep 28, 2012, 12:58 PM
[CLOSED] [#16] Problem width Ext.Msg.show in BeforeClose event of Panel
Goodafternoon,
in my attached example I have a problem:
when the page appears, if I press button "test" for first and later I press the tab close button then the messagebox appears but if I immediately press the tab close button then the messagebox in IE is too small and unusable and in Chrome is only unusable.
Thank you.
in my attached example I have a problem:
when the page appears, if I press button "test" for first and later I press the tab close button then the messagebox appears but if I immediately press the tab close button then the messagebox in IE is too small and unusable and in Chrome is only unusable.
Thank you.
<%@ Page Language="C#" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title></title>
<script type="text/javascript" language="javascript">
var onCloseTab = function (panel, eOpts) {
Ext.Msg.show({
title: "Attention",
msg: "Test onBeforeClose",
width: 300,
icon: Ext.Msg.QUESTION,
buttons: Ext.Msg.YESNO,
minWidth: 290,
animateTarget: "TabPanel1"
});
return false;
}
var msgBoxShow = function () {
Ext.Msg.show({
title: "Test",
msg: "onClick",
width: 300,
icon: Ext.Msg.QUESTION,
buttons: Ext.Msg.YESNO,
minWidth: 290,
multiline: false
});
}
</script>
</head>
<body>
<form id="Form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" />
<br />
<ext:Button id="btnTestMsg" runat="server" Text="test">
<Listeners>
<Click Handler="msgBoxShow();" />
</Listeners>
</ext:Button>
<br />
<div>
<ext:TabPanel
ID="TabPanel1"
runat="server"
ActiveTabIndex="0"
Width="600"
Height="250"
Plain="true">
<Items>
<ext:Panel
ID="Tab2"
runat="server"
Title="Closable Tab"
Html="You can close this Tab."
BodyPadding="6"
Closable="true">
<Listeners>
<BeforeClose Fn="onCloseTab" />
</Listeners>
</ext:Panel>
</Items>
</ext:TabPanel>
</div>
</form>
</body>
</html>
Last edited by Daniil; Dec 29, 2012 at 9:40 AM.
Reason: [CLOSED]