Skip to content

Commit

Permalink
Set style as well as attr for tree using attr
Browse files Browse the repository at this point in the history
  • Loading branch information
Nolan Woods committed Sep 14, 2020
1 parent ffea560 commit 52853d8
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 110 deletions.
175 changes: 68 additions & 107 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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).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
var treeContainer = svg.append("g").attr("class", "treeContainer").attr("width", TREECONTAINERWIDTH).attr("height", this.containerHeight()).attr("style", "width: ".concat(TREECONTAINERWIDTH, "; height: ").concat(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
3 changes: 1 addition & 2 deletions src/js/genomecomparevis.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,8 @@ 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("style", `width: ${TREECONTAINERWIDTH}; height: ${this.containerHeight()}`)
.attr("transform", "translate(" + 0 + "," + (this.getTreeModPadding()) + ")");

// Add the tree and listeners to the visualization
Expand Down

0 comments on commit 52853d8

Please sign in to comment.