From ffea5609509efaac0352428ec8e39cfa9a76261e Mon Sep 17 00:00:00 2001 From: Nolan Woods Date: Mon, 14 Sep 2020 16:16:35 -0700 Subject: [PATCH] Set style as well as attr for tree --- galaxy/templates/islandcompare.mako | 2 +- src/js/genomecomparevis.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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