When viewing the full extent of a map, the extentRectangle in the overview map will be larger than the size of the overview map, and right and bottom borders will not be visible. This can be seen in http://www.openlayers.org/dev/examples/overviewmap.html when zooming to the full extent, ie. clicking on the "world" button.
When the OverviewMap is created by the createMap() method, position and width/height of the extentRectangle are not set yet. This is the reason why OpenLayers.Element.getStyle() returns 0px for all border width styles, and the calculation of wComp and hComp will always evaluate to 2. The attached patch fixes this by doing the calculations for the width/height compensations later.
After applying this patch, http://www.openlayers.org/dev/examples/overviewmap.html will show a complete extentRectangle, even when the map is at its full extent.