Commit c1e98e85 authored by Ludo Cottret's avatar Ludo Cottret

change the size of the tree

parent e217b2bc
......@@ -73,18 +73,18 @@ Ext
.alert("Failed",
"No file for this alignment");
} else {
// var div = panel.query("container
// div")[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 msaDiv = 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(msaDiv);
yourDiv.appendChild(treeDiv);
......@@ -126,7 +126,7 @@ Ext
console.log(newick);
(function (Phylocanvas) {
var tree = Phylocanvas.createTree(treeDiv);
var tree = Phylocanvas.createTree(treeDiv, {"fillCanvas":true});
tree.load(newick);
var h = document.getElementsByClassName("phylocanvas-history")[0];
......
......@@ -31,3 +31,8 @@
}
.treeDiv {
height:800px;
width:100%;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment