<p><font size=3>I also tried using this, which is more appropriate. It
works with a click event but not with a scroll event</font>
<br><font size=1 color=#333333 face="Lucida Sans Unicode">listeners: <br>
{<br>
render: function(c)<br>
{<br>
c.getEl().on('scroll', function()<br>
{<br>
alert("scrolling");<br>
}, <br>
c);<br>
}<br>
}</font>
<p>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Steve.Toutant@inspq.qc.ca@geoext.org</b>
</font>
<br><font size=1 face="sans-serif">Envoyé par : users-bounces@geoext.org</font>
<p><font size=1 face="sans-serif">20/05/2010 08:50 AM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td><font size=1 face="sans-serif">users@geoext.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">[Users] map.updateSize on Scroll</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br>
<br>
<br><font size=3><br>
Hi, <br>
I use a geoext map panel inside a extjs panel. <br>
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.....
<br>
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. <br>
How should I do that please? <br>
thanks <br>
Steve <br>
<br>
<br>
{ <br>
region:'east',<br>
xtype: 'panel',<br>
margins: '5 5 5 0',<br>
width: 400,<br>
title: "Statut de la veille météorologique",<br>
collapsible: true,<br>
autoScroll: true,<br>
listeners: <br>
{<br>
'scroll': function()<br>
{ <br>
alert("scrolling");<br>
map.updateSize();<br>
}<br>
},<br>
items: <br>
[<br>
{<br>
xtype: 'gx_mappanel', <br>
layout: 'fit',<br>
map: map,<br>
height: 400,<br>
width: 400,<br>
border: true,<br>
center: new OpenLayers.LonLat(point.x, point.y),<br>
zoom: 5<br>
},<br>
{<br>
contentEl:'divMapAvertissements',<br>
border: false<br>
} <br>
]<br>
} </font>
<p><font size=3><br>
</font><tt><font size=2>_______________________________________________<br>
Users mailing list<br>
Users@geoext.org<br>
http://www.geoext.org/cgi-bin/mailman/listinfo/users<br>
</font></tt>
<br>
<br>
<br>