[OpenLayers-Users] 2.5 Firefox and Framecloud autoSize

Christopher Schmidt crschmidt at metacarta.com
Wed Apr 9 08:24:58 EDT 2008


On Wed, Apr 09, 2008 at 07:37:11PM +0800, David Martin wrote:
> Hi,
> 
>  
> 
> I have been working today on FramedCloud and have noticed that is
> works perfectly in IE7 and not in FF2. It appears that when text wraps
> FF does not resize the box to the correct size. In fact even when it
> does not have test wrap the bottom line of text if FF2 is chopped off.

Because of the way that OpenLayers determines popup size, it can not
take into account when aspects of the content have a margin set on them.
your <h4> has a margin of 6px on the bottom and 4px on the top. If you
override this:

.olFramedCloudPopupContent h4 {
    margin-bottom:0px;
    margin-top:0px;
}

*after* your Style170108.css (or after the h4 definition in that file)
then it should resolve the issue. (At least, it does for me.)  

>       popup.maxSize=new OpenLayers.Size(200,200);

I don't think you want to do this: how can you be sure this will be big
enough? In this case, it looks like it might not be... 

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list