Fix positioning when <mroot> is missing its second argument
This commit is contained in:
parent
3bd6c1d203
commit
b651ab1857
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user