Use "superContainer" to operate well in Android, .

This commit is contained in:
Xavier Mamano
2012-06-03 23:54:11 +02:00
parent b7e2222d46
commit 2b9ea5007b
2 changed files with 2 additions and 3 deletions

View File

@@ -1542,8 +1542,7 @@ OpenLayers.Util.getRenderedDimensions = function(contentHTML, size, options) {
}
parent = parent.parentNode;
}
if(parentHasPositionAbsolute && (containerElement.clientHeight === 0 ||
containerElement.clientWidth === 0) ){
if(parentHasPositionAbsolute){
superContainer = document.createElement("div");
superContainer.style.visibility = "hidden";
superContainer.style.position = "absolute";