Fix positioning when <mroot> is missing its second argument

This commit is contained in:
Davide P. Cervone 2012-01-26 19:57:10 -05:00
parent 3bd6c1d203
commit b651ab1857
3 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1586,7 +1586,7 @@
var w = Math.min(root.w,root.r); // remove extra right-hand padding, if any var w = Math.min(root.w,root.r); // remove extra right-hand padding, if any
x = Math.max(w,dx); x = Math.max(w,dx);
svg.Add(root,x-w,h); svg.Add(root,x-w,h);
} } else {dx = x}
return x - dx; return x - dx;
}, },
SVGrootHeight: function (d,scale,root) { SVGrootHeight: function (d,scale,root) {