View Full Version : Borderlayout Google Map resizing

7 Jan 2012, 11:20 AM
I'm new to Ext. I'm using a borderlayout with center and east regions. The center contains a GMapPanel. When I enlarge the center area by moving the splitter panel to the right, the GMapPanel resize event isn't called. I tried adding listeners for resize and move and call google.maps.event.trigger(Ext.getCmp('googlemap').getMap(), 'resize') inside the handler, but that just seemed to trigger some endless loop.
How can I get the map to be redrawn when the splitter is moved?

7 Jan 2012, 11:31 AM
Oh, just found it. I'm calling (map).onResize in inside the resize listener and it works fine.