openlayers/openlayers — pull request #565 by jorix (2012-06-30 18:41:40+00:00)
Title: Util.getRenderedDimensions: Get the right size when IE9 uses fractional sizes.

This problem using IE9 is important in the popups when no padding is used, or after adjusting padding with #544.

Then a simple text may need a line feed when uses IE9 in non compatibility mode. See proposed tests.

Tested form IE6 and FF1.5 to IE9 FF13 Safari Chrome and Opera

- - -

Justification for the implementation:

`getStyle(content, "width")` is not equal to the property `scrollWidth` but when when it is used *content.style.overflow = "visible"* then *"scrollWidth" = "clientWidth"*

On the other hand, `Util.getRenderedDimensions` creates `content` as a div without a *class* and not uses styles for border or padding. Therefore, `content` can have only border or padding by display class of parent div , so `container` . EG using `.myContainerClass>div{padding:10px}` I think that this possibility be ruled out, is a bad design, I think that possibility can be ruled out.

So, with these considerations: `getStyle(content, "width")` is equal to `scrollWidth`