From 6f911ae51065d29fe9d54663cbbd1df50784cc4d Mon Sep 17 00:00:00 2001 From: Lorenzo Tilve Date: Wed, 8 Jul 2009 17:34:55 +0200 Subject: [PATCH] ItEr16S09RFComportamentoGraficoPlanificadorItEr15S12: Fixed blinking effect of taskdetails component when y-scrolling --- .../src/main/resources/web/js/ganttz/tasklist.js | 8 +++++--- .../src/main/webapp/planner/css/ganttzk.css | 7 +++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/navalplanner-gantt-zk/src/main/resources/web/js/ganttz/tasklist.js b/navalplanner-gantt-zk/src/main/resources/web/js/ganttz/tasklist.js index 7c11079b4..5c914ffb3 100644 --- a/navalplanner-gantt-zk/src/main/resources/web/js/ganttz/tasklist.js +++ b/navalplanner-gantt-zk/src/main/resources/web/js/ganttz/tasklist.js @@ -118,13 +118,15 @@ function adjustScrollableDimensions() { scroll_container.style["width"] = timetracker.style["width"]; timetracker.style["height"] = - (window.innerHeight - TIMETRACKER_OFFSET_TOP +5 ) +"px"; // Extra padding + (window.innerHeight - TIMETRACKER_OFFSET_TOP + 5 ) +"px"; // Extra padding scroll_container.style["height"] = - (window.innerHeight - TIMETRACKER_OFFSET_TOP - 90 ) +"px"; + (window.innerHeight - TIMETRACKER_OFFSET_TOP - + ( FOOTER_HEIGHT + SCROLLBAR_WIDTH*2 )) +"px"; // Watermark heigh also needs recalculations due to the recreation document.getElementById('watermark').style["height"] - = (window.innerHeight - TIMETRACKER_OFFSET_TOP - 60 ) +"px"; + = (window.innerHeight - TIMETRACKER_OFFSET_TOP - + ( FOOTER_HEIGHT + SCROLLBAR_WIDTH )) +"px"; // Inner divs need recalculation to adjust to new scroll displacement lenght document.getElementById('ganttpanel_inner_scroller_y').style["height"] diff --git a/navalplanner-webapp/src/main/webapp/planner/css/ganttzk.css b/navalplanner-webapp/src/main/webapp/planner/css/ganttzk.css index 44b05d8b9..e1c717184 100644 --- a/navalplanner-webapp/src/main/webapp/planner/css/ganttzk.css +++ b/navalplanner-webapp/src/main/webapp/planner/css/ganttzk.css @@ -27,11 +27,10 @@ zkTasklist.SCROLLBAR_WIDTH = 15 #listdetails_container { float:left; - overflow:hidden; height:300px; position:relative; - top:20px; - overflow: hidden; + top:25px; + overflow-y: hidden; border-bottom: 1px solid #86A4BE; border-right: 1px solid #86A4BE; } @@ -291,7 +290,7 @@ tr.z-vbox-sep { } #ganttpanel_scroller_y { - top: 200px; /* Calculate initial settings */ + top: 195px; /* Calculate initial settings */ left: 920px; width:15px; height:330px;