diff --git a/dom-style.js b/dom-style.js index 2d498a15db..0c871ba988 100644 --- a/dom-style.js +++ b/dom-style.js @@ -199,7 +199,7 @@ define(["./sniff", "./dom"], function(has, dom){ function _toStyleValue(node, type, value){ //TODO: should we really be doing string case conversion here? Should we cache it? Need to profile! type = type.toLowerCase(); - if(has("ie")){ + if(has("ie") || has("trident")){ if(value == "auto"){ if(type == "height"){ return node.offsetHeight; } if(type == "width"){ return node.offsetWidth; } diff --git a/tests/dom-style.html b/tests/dom-style.html index 86849e43f0..e36aa4c4cf 100644 --- a/tests/dom-style.html +++ b/tests/dom-style.html @@ -30,6 +30,11 @@ doh.t(false); } } + }, + function getWidth(){ + // see http://bugs.dojotoolkit.org/ticket/17962 + var rowWidth = domStyle.get(dom.byId("trow"), "width"); + doh.t(rowWidth > 0, "width: " + rowWidth); } ]); @@ -39,5 +44,6 @@
+
Col ACol B