...
 
Commits (2)
This diff is collapsed.
...@@ -73,18 +73,18 @@ Ext ...@@ -73,18 +73,18 @@ Ext
.alert("Failed", .alert("Failed",
"No file for this alignment"); "No file for this alignment");
} else { } else {
// var div = panel.query("container
// div")[0];
var yourDiv = Ext.query('#' + container.getEl().id + " div.msa")[0]; var yourDiv = Ext.query('#' + container.getEl().id + " div.msa")[0];
console.log("url alignment", urlAlignment);
console.log("url tree", urlTree);
var menuDiv = document.createElement("div"); var menuDiv = document.createElement("div");
var msaDiv = document.createElement("div"); var msaDiv = document.createElement("div");
var treeDiv = document.createElement("div"); var treeDiv = document.createElement("div");
treeDiv.className += " treeDiv";
treeDiv.innerHTML += "Tree computed with FastTree.<br />";
treeDiv.innerHTML += "<a href='"+urlTree+"'_target=_blank>Newick file</a><br />";
yourDiv.appendChild(menuDiv); yourDiv.appendChild(menuDiv);
yourDiv.appendChild(msaDiv); yourDiv.appendChild(msaDiv);
yourDiv.appendChild(treeDiv); yourDiv.appendChild(treeDiv);
...@@ -126,7 +126,7 @@ Ext ...@@ -126,7 +126,7 @@ Ext
console.log(newick); console.log(newick);
(function (Phylocanvas) { (function (Phylocanvas) {
var tree = Phylocanvas.createTree(treeDiv); var tree = Phylocanvas.createTree(treeDiv, {"fillCanvas":true});
tree.load(newick); tree.load(newick);
var h = document.getElementsByClassName("phylocanvas-history")[0]; var h = document.getElementsByClassName("phylocanvas-history")[0];
......
...@@ -31,3 +31,8 @@ ...@@ -31,3 +31,8 @@
} }
.treeDiv {
height:800px;
width:100%;
}