diff --git a/galaxy/templates/islandcompare.mako b/galaxy/templates/islandcompare.mako index a1dc58b..42fd725 100755 --- a/galaxy/templates/islandcompare.mako +++ b/galaxy/templates/islandcompare.mako @@ -15414,7 +15414,7 @@ function MultiVis(targetNode) { if (self.newickRoot != null) { //Add the tree visualization container - var treeContainer = svg.append("g").attr("class", "treeContainer").attr("width", TREECONTAINERWIDTH).attr("height", this.containerHeight()).attr("transform", "translate(" + 0 + "," + this.getTreeModPadding() + ")"); // Add the tree and listeners to the visualization + var treeContainer = svg.append("g").attr("class", "treeContainer").attr("width", TREECONTAINERWIDTH).css("width", TREECONTAINERWIDTH).attr("height", this.containerHeight()).css("height", this.containerHeight()).attr("transform", "translate(" + 0 + "," + this.getTreeModPadding() + ")"); // Add the tree and listeners to the visualization d3.phylogram.build('.treeContainer', self.newickRoot, { width: TREECONTAINERWIDTH, diff --git a/src/js/genomecomparevis.js b/src/js/genomecomparevis.js index e4dc35c..2001a16 100644 --- a/src/js/genomecomparevis.js +++ b/src/js/genomecomparevis.js @@ -250,7 +250,9 @@ export default function MultiVis(targetNode){ var treeContainer = svg.append("g") .attr("class", "treeContainer") .attr("width", TREECONTAINERWIDTH) + .css("width", TREECONTAINERWIDTH) .attr("height", this.containerHeight()) + .css("height", this.containerHeight()) .attr("transform", "translate(" + 0 + "," + (this.getTreeModPadding()) + ")"); // Add the tree and listeners to the visualization