ItEr16S09RFComportamentoGraficoPlanificadorItEr15S12: Timetracker scrollX with adjusted properly when changing zoom levels.

This commit is contained in:
Lorenzo Tilve 2009-07-08 16:45:17 +02:00 committed by Javier Moran Rua
parent f5083c71d9
commit a994173bb8
2 changed files with 5 additions and 6 deletions

View file

@ -110,6 +110,7 @@ function adjustScrollableDimensions() {
// Timetracker is recalculated when the window is resized and when zoom // Timetracker is recalculated when the window is resized and when zoom
// level is changed as the component is recreated // level is changed as the component is recreated
timetracker = document.getElementById('timetracker'); timetracker = document.getElementById('timetracker');
watermark = document.getElementById('watermark');
scroll_container = document.getElementById('scroll_container'); scroll_container = document.getElementById('scroll_container');
timetracker.style["width"] = timetracker.style["width"] =
@ -130,8 +131,6 @@ function adjustScrollableDimensions() {
= document.getElementById('listdetails_container').scrollHeight + "px"; = document.getElementById('listdetails_container').scrollHeight + "px";
// Inner divs need recalculation to adjust to new scroll displacement lenght // Inner divs need recalculation to adjust to new scroll displacement lenght
/* It must be recalculated matching taskdetails width document.getElementById('ganttpanel_inner_scroller_x').style["width"]
* document.getElementById('ganttpanel_inner_scroller_x').style["width"] = watermark.offsetWidth +"px";
= timetracker.firstElementChild.clientWidth +"px"; */
} }

View file

@ -109,7 +109,7 @@ border:0px;
border-bottom: dotted 1px #CCCCCC; border-bottom: dotted 1px #CCCCCC;
margin-bottom: 10px; margin-bottom: 10px;
margin-top: 10px; margin-top: 10px;
width: 1800px; width: 10000px; /* Defined to be larger than the maximum scroll_inner_x */
} }
/* -------------- TaskGroup -------------- */ /* -------------- TaskGroup -------------- */
@ -286,7 +286,7 @@ tr.z-vbox-sep {
#ganttpanel_inner_scroller_x { #ganttpanel_inner_scroller_x {
/* must be resized on ganttpanel javascript adjust size */ /* must be resized on ganttpanel javascript adjust size */
width:1900px; /* Real canvas dimensions */ width:9000px; /* Real canvas dimensions */
height:15px; /* Scroll constant */ height:15px; /* Scroll constant */
} }