Skip to content

Commit

Permalink
Set style as well as attr for tree
Browse files Browse the repository at this point in the history
  • Loading branch information
Nolan Woods committed Sep 14, 2020
1 parent a6e9867 commit ffea560
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion galaxy/templates/islandcompare.mako
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 2 additions & 0 deletions src/js/genomecomparevis.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ffea560

Please sign in to comment.