Browse files

insert test element before original, in hope this improves its chance…

…s of being correctly rendered.
  • Loading branch information...
1 parent a3720fe commit c6c7cc8d38320a2434cac9bd88de3b6c768fd259 @ahume committed Jan 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/responsive-containers.js
View
2 src/responsive-containers.js
@@ -165,7 +165,7 @@ THE SOFTWARE.
test.style.overflow = "hidden";
test.style.clear = "both";
var parent = el.parentNode;
- parent.appendChild(test);
+ parent.insertBefore(test, el);
var val = test.offsetWidth;
parent.removeChild(test);
return val;

0 comments on commit c6c7cc8

Please sign in to comment.