Skip to content
Snippets Groups Projects
Commit 4c5db751 authored by sensei's avatar sensei
Browse files

cap ftree size

parent bded766d
No related branches found
No related tags found
No related merge requests found
...@@ -39,9 +39,13 @@ window.renderFamilyTree = function(slaves, filterID) { ...@@ -39,9 +39,13 @@ window.renderFamilyTree = function(slaves, filterID) {
ftreeHeight = data.nodes.length * 35; ftreeHeight = data.nodes.length * 35;
if(ftreeWidth < 600) { if(ftreeWidth < 600) {
ftreeWidth = 600; ftreeWidth = 600;
} else if(ftreeWidth > 1920) {
ftreeWidth = 1920;
} }
if(ftreeHeight < 480) { if(ftreeHeight < 480) {
ftreeHeight = 480; ftreeHeight = 480;
} else if(ftreeHeight > 1200) {
ftreeHeight = 1200;
} }
margin = {top:0, left:0, bottom:0, right:0 } margin = {top:0, left:0, bottom:0, right:0 }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment