Skip to content
Snippets Groups Projects
Commit 0c981679 authored by Pregmodder's avatar Pregmodder
Browse files

Merge branch 'ftree' into 'pregmod-master'

cap ftree size

See merge request pregmodfan/fc-pregmod!1288
parents 0221b00b 4c5db751
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