I also tried using this, which is more appropriate. It works with a click
event but not with a scroll event
listeners:
{
render: function(c)
{
c.getEl().on('scroll', function()
{
alert("scrolling");
},
c);
}
}
[email protected]@geoext.org
Envoyé par : [email protected]
20/05/2010 08:50 AM
A
[email protected]
cc
Objet
[Users] map.updateSize on Scroll
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
_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users