<div dir="ltr">Can you be a bit more specific and explain what you mean by "container is split in two"? A screenshot maybe?<div><br></div><div>Thanks,</div><div>Andreas.</div></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">On Mon, Jul 8, 2013 at 2:05 PM, Nuno Magalhães <span dir="ltr"><<a href="mailto:nuno.magalhaes@inov.pt" target="_blank">nuno.magalhaes@inov.pt</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
If I write the following code:<br>
<br>
---<br>
var resizeTimeoutId;<br>
function schedulePageResize() {<br>
  clearTimeout(resizeTimeoutId);<br>
  resizeTimeoutId = setTimeout('doPageResize();', 10);<br>
}<br>
function doPageResize() {<br>
  //Refresh map (sometimes needs this to reposition map correctly)<br>
  //OpenLayers-2.12 needs this to reposition vector data correctly<br>
  myMapObj = this.document.getElementById('myMap');<br>
  if (map != null) map.render(myMapObj);<br>
}<br>
---<br>
<br>
and call it on the body "onresize" event handler the container is split in<br>
two (in the latest version of open layers - 2.13). Why?<br>
<br>
I attach the html file that causes this issue.<br>
<br>
page.html <<a href="http://osgeo-org.1560.x6.nabble.com/file/n5064681/page.html" target="_blank">http://osgeo-org.1560.x6.nabble.com/file/n5064681/page.html</a>><br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/OpenLayers-Map-render-possible-bug-tp5064681.html" target="_blank">http://osgeo-org.1560.x6.nabble.com/OpenLayers-Map-render-possible-bug-tp5064681.html</a><br>

Sent from the OpenLayers Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Andreas Hocevar<br>OpenGeo - <a href="http://opengeo.org/">http://opengeo.org/</a><br>Expert service straight from the developers.<br>
</div>