[OpenLayers-Dev] Google layer and div resize: wrong config or bug?

Tim Schaub tschaub at openplans.org
Wed Feb 6 13:58:01 EST 2008

Hey, look at that.  Read thread, then reply!

Pierre GIRAUD wrote:
> In your ext layout, you can add a listener to your center panel for
> the "bodyresize" event.
> In our MapComponent, it something like :
> this.on("bodyresize", this.map.updateSize, this.map);
> But you can do it differently by setting a listeners property to your Ext.Panel.
> Regards,
> Pierre
> On Feb 5, 2008 11:01 PM, Diego Guidi <diegoguidi at gmail.com> wrote:
>>> You can easily test a simple thing. With a single layer in your map,
>>> you can try to pan the map just after resizing an ExtJS region. You'll
>>> see that the map behavior is weird. The map moves more than expected.
>> True. This happens, but this could be fixed with a zoomin/zoomout.
>> The google "bug" it's not recoverable :(
>>> In MapFish we combine ExtJS and OL, and we often use layouts.
>>> To prevent the issue you expose here, we created a widget that simply
>>> calls map.updateSize() and this seems to go pretty well.
>> Could you help me?
>> How to bind a resize event (like a splitter movement) and call map.getUpdate()?
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
> !DSPAM:4033,47a8e0398772085621377!

More information about the Dev mailing list