Use "superContainer" to operate well in Android, .
This commit is contained in:
@@ -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";
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user