Nov 10, 2011, 8:31 AM
[CLOSED] Window falling behind notification
One more thing: my notification is falling behind the mask. I tried setting the new notification window z-index to 10000, but no luck.
Steps to reproduce:
1. Click 'Click me first';
2. Click 'Click me second'.
Source code bellow.
Thanks
Steps to reproduce:
1. Click 'Click me first';
2. Click 'Click me second'.
Source code bellow.
Thanks
<%@ Page Language="C#" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<script runat="server">
protected void Test(object sender, DirectEventArgs e)
{
System.Threading.Thread.Sleep(250);
var window = new Window();
window.ID = "window1";
window.Y = 15;
window.InitCenter = false;
window.StyleSpec = "position: fixed; z-index: 10000";
window.Render();
}
</script>
<!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 runat="server">
<title>Ext.Net Example</title>
<style type="text/css">
.x-mask-padding {
padding-right: 17px;
}
</style>
</head>
<body>
<form runat="server">
<ext:ResourceManager runat="server" />
<div style="width: 800px; margin: 0 auto">
<ext:Panel
runat="server"
Title="Name"
Html="Name"
Height="300" />
<ext:Panel
runat="server"
Title="Name"
Html="Name"
Height="300" />
<ext:Panel
runat="server"
Title="Name"
Html="Name"
Height="300" />
</div>
<ext:Window runat="server" Modal="true" Title="Window Title">
<Items>
<ext:Button runat="server" Text="Click me first">
<DirectEvents>
<Click
OnEvent="Test"
Before="Ext.getBody().addClass('x-mask-padding');
Ext.net.Mask.show();"
Success="Ext.getBody().removeClass('x-mask-padding');
Ext.net.Mask.hide();" />
</DirectEvents>
</ext:Button>
<ext:Button Text="Click me second" runat="server" />
</Items>
</ext:Window>
</form>
</body>
</html>
Last edited by Daniil; Nov 10, 2011 at 2:28 PM.
Reason: [CLOSED]