[OSM-dev] [OpenLayers-Users] How to make Auto Sized FramedCloud around an autosize iframe ?
Alexandru
icidrop at yahoo.com
Mon Nov 21 07:16:04 GMT 2011
Please tell me then what to use in order to include a html page in that framed cloud.
________________________________
From: Andreas Hocevar <ahocevar at opengeo.org>
To: alex123 <icidrop at yahoo.com>
Cc: users at openlayers.org
Sent: Friday, November 18, 2011 2:32 PM
Subject: Re: [OpenLayers-Users] How to make Auto Sized FramedCloud around an autosize iframe ?
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20111120/506f6eb3/attachment.html>
More information about the dev
mailing list