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 <[EMAIL PROTECTED]> 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
[email protected]
http://openlayers.org/mailman/listinfo/dev

Reply via email to