Fix navigation tree not scrolling until the bottom

This commit is contained in:
Pablo Vazquez 2017-09-20 16:31:07 +02:00
parent 0089a8a98e
commit 714455a4eb

View File

@ -152,11 +152,16 @@ function containerResizeY(window_height){
$('#project_context-header').width($('#project_context-container').width()); $('#project_context-header').width($('#project_context-container').width());
if ($(window).width() > 768) { if ($(window).width() > 768) {
$('#project-container, #project_nav-container, #project_tree, .project_split').css( $('#project-container').css(
{'max-height': window_height_minus_nav + 'px', {'max-height': window_height_minus_nav + 'px',
'height': window_height_minus_nav + 'px'} 'height': window_height_minus_nav + 'px'}
); );
$('#project_nav-container, #project_tree, .project_split').css(
{'max-height': (window_height_minus_nav - 50) + 'px',
'height': (window_height_minus_nav - 50) + 'px'}
);
if (container_height > parseInt($('#project-container').css("min-height"))) { if (container_height > parseInt($('#project-container').css("min-height"))) {
if (typeof projectTree !== "undefined"){ if (typeof projectTree !== "undefined"){
$(projectTree).css( $(projectTree).css(