handle negative width properly

This commit is contained in:
Christopher Chedeau
2014-04-22 17:19:21 -07:00
parent aad9fab75f
commit 01ccc098c9
2 changed files with 16 additions and 3 deletions

View File

@@ -128,7 +128,7 @@ var computeLayout = (function() {
}
function isDimDefined(node, axis) {
return !isUndefined(node.style[dim[axis]]);
return !isUndefined(node.style[dim[axis]]) && node.style[dim[axis]] >= 0;
}
function isPosDefined(node, pos) {