PDA

View Full Version : Bug when showing a window maximized



Jurke
Oct 29, 2008, 1:56 PM
Hi
I noticed a bug, if I show a window from a ajaxevent and maximize it in that event I get a very strange behaviour. The content does not show, and the if I try to resore the window the whole page get gray. Please see sample code.






public partial class Test_Default : System.Web.UI.Page


{





protected void Page_Load(object sender, EventArgs e)


{





}


protected void Open_Click(object sender, AjaxEventArgs e)


{


wndPopup.Title = "Popup window";


wndPopup.SetSize(400, 200);


wndPopup.Maximize();


wndPopup.AutoLoadIFrame= "http://www.google.se";


wndPopup.Show();


}


}









<html xmlns="http://www.w3.org/1999/xhtml">


<head id="Head1" runat="server">


<title></title>


</head>


<body>


<form id="form2" runat="server">





<ext:ScriptManager ID="ScriptManager2" runat="server" HideInDesign="false">


</ext:ScriptManager>











<ext:Button ID="btnOpenWindow" runat="server" Text="Browse" Icon="Magnifier">


<AjaxEvents>


<Click OnEvent="Open_Click"><EventMask ShowMask="true" /></Click>


</AjaxEvents>


</ext:Button>








<ext:Window Border="false" CenterOnLoad="true" ID="wndPopup" Maximizable="true" Modal="true" runat="server" Showonload="false" Collapsible="false" Icon="Application" >


</ext:Window>


</form>


</body>


</html>





Best regards
Mikael Jürke