[Users] geoext.popup position problem

Andreas Hocevar ahocevar at opengeo.org
Wed Jun 2 10:28:47 CEST 2010


Hi,

if you want to use autoHeight, you either have to preload the images before opening the popup, or set the width and height attributes (or styles) for the img tags. Otherwise you could configure the popup with a fixed height and autoScroll: true.

The problem here is that if you use autoHeight, Ext JS does not control the vertical dimensions of the image, and so the anchoring, based on the dimensions returned from Ext JS, will fail.

Regards,
Andreas.

On Jun 2, 2010, at 10:00 , semska at gmail.com wrote:

> Hi all,
> 
> I use the geoext.popup to display information on features in the map.
> The content in the html element consists of text and an image<img>
> My problem is that the positioning of the anchored popup is done before the image is fully loaded(not always, but most of the time). This makes the positioning of the anchored popup wrong because the height is altered by the image when it is loaded.
> popup definition:
> popupInstance= new GeoExt.Popup({
> title: 'Title',
> feature: feature,
> width: width,
> html: 'both text and image tags',
> maximizable: false,
> collapsible: false,
> unpinnable: false
> });_______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users



-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.



More information about the Users mailing list