PDA

View Full Version : [CLOSED] [#316] Window content disappears when moved



vadym.f
Jul 15, 2013, 5:31 PM
Hi,

Please consider the code sample below. When a Window is brought forward and dragged across the screen, its content disappears. It's back when the window gets hidden and re-displayed. This behavior can't be reproduced when Resizable is set to "true" on the Window object. Please advise.



<%@ Page Language="C#" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>

<!DOCTYPE html>
<html>
<head id="Head1" runat="server">
<title></title>
<script type="text/javascript">
var showWindow = function () {
var wnd = App.Window1;
var url = "http://ext.net";
wnd.center();
wnd.setVisible(true);

if (!wnd.loader.url) {
wnd.loader.url = url;
wnd.load({
url: url
});
}
};
</script>
</head>
<body>
<form id="Form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server">
</ext:ResourceManager>
<ext:Viewport runat="server" Layout="FitLayout">
<Items>
<ext:Panel runat="server">
<BottomBar>
<ext:Toolbar runat="server">
<Items>
<ext:Button ID="Button1" runat="server" Text="Show Window">
<Listeners>
<Click Handler="showWindow();">
</Click>
</Listeners>
</ext:Button>
</Items>
</ext:Toolbar>
</BottomBar>
</ext:Panel>
</Items>
</ext:Viewport>
<ext:Window ID="Window1" runat="server" Icon="CogEdit" Title="Edit" Width="800" Height="600"
Resizable="false" Collapsible="false" Hidden="true" Modal="true" Draggable="true">
<Loader ID="Loader1" runat="server" AutoLoad="false" Mode="Frame" Url="">
</Loader>
</ext:Window>
</form>
</body>
</html>

Baidaly
Jul 15, 2013, 10:34 PM
Hello!

Sorry, can you say what browser do you use? And also, is this issue reproducible with last sources from trunk?

I've tried in IE10, Chrome and Firefox with our trunk and couldn't reproduce.

vadym.f
Jul 16, 2013, 3:58 AM
Hello!

Sorry, can you say what browser do you use? And also, is this issue reproducible with last sources from trunk?

I've tried in IE10, Chrome and Firefox with our trunk and couldn't reproduce.

Got the latest code from the trunk. The issue is reproducible in IE 9.0.8112. Chrome and Firefox seem to be fine. Curiously, when I switch to compatibility mode, the issue is gone. IE 9 is our target end user browser.

Daniil
Jul 16, 2013, 6:11 AM
I am able to reproduce it in IE9. Thank you for the report.

Here is a simplified test case with a possible workaround in the <head> section.

Example

<%@ Page Language="C#" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>

<!DOCTYPE html>
<html>
<head runat="server">
<title>Ext.NET v2 Example</title>

<script>
if (Ext.isIE9) {
Ext.panel.Panel.override({
endDrag: function () {
if (this.floatingDescendants) {
this.floatingDescendants.show();
}

if (this.iframe) {
this.iframe.show();
}
}
})
}
</script>
</head>
<body>
<ext:ResourceManager runat="server" />

<ext:Window
ID="Window1"
runat="server"
Width="300"
Height="300">
<Loader
runat="server"
AutoLoad="true"
Mode="Frame"
Url="http://ext.net" />
</ext:Window>
</body>
</html>


I am able to reproduce with pure ExtJS and reported to Sencha.
http://www.sencha.com/forum/showthread.php?267964

vadym.f
Jul 16, 2013, 11:40 AM
Thanks for the workaround Daniil, it works well for IE 9! As no one claims this to be a framework bug, should I assume your override may not make the trunk?

Daniil
Jul 16, 2013, 3:04 PM
I am not sure yet. Hopefully, Evan will answer something on:
http://www.sencha.com/forum/showthread.php?267964#post981611

Daniil
Aug 06, 2013, 5:55 AM
Created an Issue to track this defect.
https://github.com/extnet/Ext.NET/issues/316

Sencha doesn't open a bug, but it definitely looks a bug. So, I will continue attempts to convince them.

Daniil
Aug 09, 2013, 2:35 PM
Here is a similar issue.
http://forums.ext.net/showthread.php?25992#post115160

RCN
Jan 21, 2015, 5:25 PM
I tested on version 3.1.0 and everything seens to be ok.

Daniil, can you retest?

Daniil
Jan 22, 2015, 9:06 AM
Thanks for retesting! I cannot reproduce as well. Closing the issue.

RCN
Jan 22, 2015, 10:44 AM
Thank you Daniil