[OpenLayers-Users] Ancored Popup Autosize troubles

Sebastian Benthall seb at opengeo.org
Wed Jan 28 11:29:14 EST 2009


Ah, ok. Try this:

               popup.autoSize = true;

some place after initializing the popup and before adding it to the map
(like line 126), and pass null to the popup constructor instead of new
OpenLayers.Size(200,200).

What's going on is that autoSize is a boolean property of popups that gets
checked by the popup code when the popup is rendered.  It's an API property,
so it's kosher to set it directly.  What's weird is that unlike most
OpenLayers classes, Popups don't take an options argument that would let you
set in on initialization.

Hope that helps.

thanks for any input.
> --
> View this message in context:
> http://n2.nabble.com/Ancored-Popup-Autosize-troubles-tp2221855p2233062.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>



-- 
Sebastian Benthall
OpenGeo - http://opengeo.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090128/66b12201/attachment.html


More information about the Users mailing list