[OpenLayers-Users] How to make Auto Sized FramedCloud around an
autosize iframe ?
Andreas Hocevar
ahocevar at opengeo.org
Fri Nov 18 07:32:33 EST 2011
The only solution is to not use an iframe.
Andreas.
On Nov 18, 2011, at 13:29 , alex123 wrote:
> This is my iframe:
> *popupContentHTML = '<iframe src="/static/st.html" width="100%"
> height="300"/> ';*
> This is my frame
> *AutoSizeFramedCloud = OpenLayers.Class(OpenLayers.Popup.FramedCloud, {
> 'autoSize': true
> });*
>
> The problem is that it just doesn't work. The framedcloud doesn't grow to
> fit iframe's content. It only works if i add a specific width to iframe in
> px, like: *width="300"*.
> Does anyone know how to achieve my desired result?
>
> --
> View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-make-Auto-Sized-FramedCloud-around-an-autosize-iframe-tp7008062p7008062.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
--
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
More information about the Users
mailing list