Hi, I want to show a popup containing an image. I want it to size automatically depending on content (ie: mainly image width and height); so, I use autoSize property for popup.
But popup size is not computed correctly in firefox, it's really too small. It looks like image dimensions are not part of computed dimensions: http://renevier.net/misc/ol_autosizeimg.html (click anywhere on the map to display a popup) Once image is in cache, dimensions are computed correctly. So, if I reload given page, popup will display correctly. dimensions are computed in OpenLayers.Util.getRenderedDimensions by getting popup innerHTML, injecting it in an html element, and checking its scrollWidth and scrollHeight properties. Image is not loaded when returning from this function, and my guess is its dimensions are unknown to firefox at that moment. Do you think there's a workaround for that ? thanks arno
signature.asc
Description: Digital signature
_______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
