Hello, I experience incorrect window resize when window placed on top of OpenLayers map. The issue appears with OpenLayers 2.13, in 2.12 it works as expected.
Here's sample code:
<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true"
CodeBehind="WebForm2.aspx.cs" Inherits="WebGisGeo.WebForm2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script type="text/javascript" src="http://www.openlayers.org/dev/OpenLayers.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div id="map" style="width: 800px; height: 800px">
</div>
<telerik:RadWindow ID="_wndAttributeEditor" runat="Server" Title="Attribute Editor"
Width="400" Height="550" VisibleOnPageLoad="false" Behaviors="Move, Resize, Maximize"
Left="20" Top="170" EnableShadow="true">
<ContentTemplate>
<div id="_dvEditorWindowContent">
</div>
</ContentTemplate>
</telerik:RadWindow>
<input type="button" value="show" onclick="showwnd(); return false;" />
<script type="text/javascript">
function showwnd() {
var editorWindow = $find("<%=_wndAttributeEditor.ClientID%>");
editorWindow.show();
}
function init() {
map = new OpenLayers.Map({
div: "map",
allOverlays: true,
maxExtent: new OpenLayers.Bounds(1549471.9221, 6403610.94, 1550001.32545, 6404015.8)
});
}
</script>
</asp:Content>
Any help appreciated, thanks in advance!
Here's sample code:
<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true"
CodeBehind="WebForm2.aspx.cs" Inherits="WebGisGeo.WebForm2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script type="text/javascript" src="http://www.openlayers.org/dev/OpenLayers.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div id="map" style="width: 800px; height: 800px">
</div>
<telerik:RadWindow ID="_wndAttributeEditor" runat="Server" Title="Attribute Editor"
Width="400" Height="550" VisibleOnPageLoad="false" Behaviors="Move, Resize, Maximize"
Left="20" Top="170" EnableShadow="true">
<ContentTemplate>
<div id="_dvEditorWindowContent">
</div>
</ContentTemplate>
</telerik:RadWindow>
<input type="button" value="show" onclick="showwnd(); return false;" />
<script type="text/javascript">
function showwnd() {
var editorWindow = $find("<%=_wndAttributeEditor.ClientID%>");
editorWindow.show();
}
function init() {
map = new OpenLayers.Map({
div: "map",
allOverlays: true,
maxExtent: new OpenLayers.Bounds(1549471.9221, 6403610.94, 1550001.32545, 6404015.8)
});
}
</script>
</asp:Content>
Any help appreciated, thanks in advance!