omit some tests in browsers that don't give us getComputedStyle for elements inside hidden frames (closes #2910)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@11753 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
ahocevar
2011-03-29 15:15:07 +00:00
parent 1417382f10
commit 7dd75fa6ea
2 changed files with 27 additions and 12 deletions

View File

@@ -211,7 +211,7 @@ OpenLayers.Handler.Box = OpenLayers.Class(OpenLayers.Handler, {
// the borders are inside the box bounds, leaving us with a
// clientWidth of 1.
var testDiv = document.createElement("div");
testDiv.style.visibility = "hidden";
//testDiv.style.visibility = "hidden";
testDiv.style.position = "absolute";
testDiv.style.border = "1px solid black";
testDiv.style.width = "3px";