We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b14d9c5 + b103c73 commit 7abc694Copy full SHA for 7abc694
js/phyd3.phylogram.js
@@ -634,8 +634,8 @@ window.requestAnimFrame = (function(){
634
oHeight = height.value;
635
636
transform.value = "translate("+options.marginX+", "+options.marginY+")";
637
- width.value = bbox.width + options.marginX;
638
- height.value = bbox.height + options.marginY;
+ width.value = (Math.max(+width.value.replace('px', ''), bbox.width) + options.marginX).toString();
+ height.value = (Math.max(+height.value.replace('px', ''), bbox.height) + options.marginY).toString();
639
640
if (typeof window.XMLSerializer != "undefined") {
641
var svgData = (new XMLSerializer()).serializeToString(svg);
0 commit comments