From 419a8ac01e13fa4b396744252eadb3144227dfa7 Mon Sep 17 00:00:00 2001
From: pkupczyk <pkupczyk>
Date: Fri, 14 Dec 2012 16:28:16 +0000
Subject: [PATCH] Basynthec Browser: take the window size into account when
 calculating the browser height

SVN: 27934
---
 .../1/as/webapps/basynthec/browser/basynthec-browser.js         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eu_basynthec/source/core-plugins/basynthec/1/as/webapps/basynthec/browser/basynthec-browser.js b/eu_basynthec/source/core-plugins/basynthec/1/as/webapps/basynthec/browser/basynthec-browser.js
index 83a38757570..d7f7bd0e558 100644
--- a/eu_basynthec/source/core-plugins/basynthec/1/as/webapps/basynthec/browser/basynthec-browser.js
+++ b/eu_basynthec/source/core-plugins/basynthec/1/as/webapps/basynthec/browser/basynthec-browser.js
@@ -248,7 +248,7 @@ AppPresenter.prototype.createVis = function()
 	od600StrainWithPhenotypesAndPredictionsVis.style("opacity", "0");
 	
 	od600StrainWithPhenotypesAndPredictionsVisScroll = od600StrainWithPhenotypesAndPredictionsVis.append("div");
-	od600StrainWithPhenotypesAndPredictionsVisScroll.style("height", w + "px");
+	od600StrainWithPhenotypesAndPredictionsVisScroll.style("height", ($(window).height() - 250) + "px");
 	od600StrainWithPhenotypesAndPredictionsVisScroll.style("overflow-y", "scroll");
 	
 	od600StrainWithPhenotypesAndPredictionsVisLegend = od600StrainWithPhenotypesAndPredictionsVis.append("div");
-- 
GitLab