[OpenLayers-Users] FramedCloud and autoSize

Wendell Turner wendell at enflight.com
Fri Jun 20 09:01:12 EDT 2008


On Thu, Jun 19, 2008 at 11:19:58PM -0400, Christopher Schmidt wrote:
> On Thu, Jun 19, 2008 at 09:42:24PM -0500, Erik Uzureau wrote:
> > Dear Wendell,
> > 
> > There is a bug in the getRenderedDimensions() function which was
> > found, reported, and fixed by a superstar member from the community,
> > one Wally somethingerother.
> > 
> > The fix is here:
> > http://trac.openlayers.org/ticket/1570
> > 
> > ... and in trunk as well. Hopefully that will help getting those sizes
> > fixed up right.
> 
> I actually sort of doubt that this is the entire solution. One problem
> is that paddings (or maybe it's margins) on elements aren't neccesarily
> included in the calculations of scrollWidth.
> 
> I typically do something like:
>   .olPopupContent h2 { margin: 0px; padding: 0px; }
> 
> to minimize the padding around my headers so that they don't get
> included. 
> 
> -- Chris
> 
> > Let us know if it works,

Yes, the patch works great!  Thanks to Wally Atkins and the
rest.  I'll also try the margin padding, that should help.

Wendell




More information about the Users mailing list