openlayers/openlayers — pull request #505 by jorix (2012-06-03 16:00:20+00:00)
Title: Adjustment on "Util.getRenderedDimensions" when "containerElement" is absolutely positioned

Ticket: [3567](http://trac.osgeo.org/openlayers/ticket/3567) due to [3531](http://trac.osgeo.org/openlayers/ticket/3531) introduced a regression if *div#map* is absolutely positioned.

Then the auto-size popups are as wide as *div#map* , see [issue 107](https://github.com/openlayers/openlayers/issues/107). This is because "Util.getRenderedDimensions" is not prepared for this circumstance, see [1906](http://trac.osgeo.org/openlayers/ticket/1906).

Implementation note: "superContainer" is not strictly necessary because in 2.12 "Util.getRenderedDimensions" is not called with the option of a containerElement without size. But better taken into account

Tested (manual/rendered-dimensions.html & popup tests) on:
* IE6 & 7 & 8 & 9
* FF 1.5 & 12.0
* Safari 5.1
* Chrome 19.0
* Opera 11.64

NOTE: Using jorix/openlayers@0f4b2f9bb12245799d50633e399b82327fb91305 can test "manual/rendered-dimensions.html" as normal tests.