Hi, in your snippet, I see a common Ext mistake: you use a "fit" layout for a component that is not the only one in its container. Remove the layout option from the mappanel, and you should be fine.
Regards, Andreas. On May 20, 2010, at 14:50 , [email protected] wrote: > > Hi, > I use a geoext map panel inside a extjs panel. > If I scroll within the extjs panel the coordinates on the map are off by the > distance I scrolled. Per example, after scrolling if I want to use a > wmsgetfeatureinfo I need to click outside the map to get a feature..... > I think I should call map.updateSize(); when finished scrolling. I tryed > without success to catch a scroll event. Here is how I do it. > How should I do that please? > thanks > Steve > > > { > region:'east', > xtype: 'panel', > margins: '5 5 5 0', > width: 400, > title: "Statut de la veille météorologique", > collapsible: true, > autoScroll: true, > listeners: > { > 'scroll': function() > { > alert("scrolling"); > map.updateSize(); > } > }, > items: > [ > { > xtype: 'gx_mappanel', > layout: 'fit', > map: map, > height: 400, > width: 400, > border: true, > center: new OpenLayers.LonLat(point.x, point.y), > zoom: 5 > }, > { > contentEl:'divMapAvertissements', > border: false > } > ] > } > > > _______________________________________________ > Users mailing list > [email protected] > http://www.geoext.org/cgi-bin/mailman/listinfo/users > -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. _______________________________________________ Users mailing list [email protected] http://www.geoext.org/cgi-bin/mailman/listinfo/users
