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@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>



-- 
Sebastian Benthall
OpenGeo - http://opengeo.org
_______________________________________________
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users

Reply via email to