ItEr16S09RFComportamentoGraficoPlanificadorItEr15S12: Timetracker scrollX with adjusted properly when changing zoom levels.
This commit is contained in:
parent
f5083c71d9
commit
a994173bb8
2 changed files with 5 additions and 6 deletions
|
|
@ -110,6 +110,7 @@ function adjustScrollableDimensions() {
|
|||
// Timetracker is recalculated when the window is resized and when zoom
|
||||
// level is changed as the component is recreated
|
||||
timetracker = document.getElementById('timetracker');
|
||||
watermark = document.getElementById('watermark');
|
||||
scroll_container = document.getElementById('scroll_container');
|
||||
|
||||
timetracker.style["width"] =
|
||||
|
|
@ -130,8 +131,6 @@ function adjustScrollableDimensions() {
|
|||
= document.getElementById('listdetails_container').scrollHeight + "px";
|
||||
|
||||
// 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"]
|
||||
= timetracker.firstElementChild.clientWidth +"px"; */
|
||||
|
||||
document.getElementById('ganttpanel_inner_scroller_x').style["width"]
|
||||
= watermark.offsetWidth +"px";
|
||||
}
|
||||
|
|
@ -109,7 +109,7 @@ border:0px;
|
|||
border-bottom: dotted 1px #CCCCCC;
|
||||
margin-bottom: 10px;
|
||||
margin-top: 10px;
|
||||
width: 1800px;
|
||||
width: 10000px; /* Defined to be larger than the maximum scroll_inner_x */
|
||||
}
|
||||
|
||||
/* -------------- TaskGroup -------------- */
|
||||
|
|
@ -286,7 +286,7 @@ tr.z-vbox-sep {
|
|||
|
||||
#ganttpanel_inner_scroller_x {
|
||||
/* must be resized on ganttpanel javascript adjust size */
|
||||
width:1900px; /* Real canvas dimensions */
|
||||
width:9000px; /* Real canvas dimensions */
|
||||
height:15px; /* Scroll constant */
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue