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
+1 -2
View File
@@ -1542,8 +1542,7 @@ OpenLayers.Util.getRenderedDimensions = function(contentHTML, size, options) {
} }
parent = parent.parentNode; parent = parent.parentNode;
} }
if(parentHasPositionAbsolute && (containerElement.clientHeight === 0 || if(parentHasPositionAbsolute){
containerElement.clientWidth === 0) ){
superContainer = document.createElement("div"); superContainer = document.createElement("div");
superContainer.style.visibility = "hidden"; superContainer.style.visibility = "hidden";
superContainer.style.position = "absolute"; superContainer.style.position = "absolute";
+1 -1
View File
@@ -41,7 +41,7 @@ function run() {
} }
// To use the same syntax as in "\tests" // To use the same syntax as in "\tests"
t = {eq: function(a, b, msg) { var t = {eq: function(a, b, msg) {
if (a == b) { if (a == b) {
out.innerHTML += "<br/>ok " + msg; out.innerHTML += "<br/>ok " + msg;
} }