Breadcrumbs: Take into account breadcrumbs when scaling project container.

This commit is contained in:
Pablo Vazquez 2019-03-28 20:57:59 +01:00
parent 4c857e63b2
commit afc8acff83

View File

@ -68,7 +68,8 @@ function containerResizeY(window_height){
var container_offset = project_container.offsetTop;
var container_height = window_height - container_offset.top;
var container_height_wheader = window_height - container_offset;
var window_height_minus_nav = window_height - container_offset;
var breadcrumbs_height = $('.breadcrumbs-container').first().height();
var window_height_minus_nav = (window_height - container_offset);
if ($(window).width() > 768) {
$('#project-container').css(
@ -76,6 +77,10 @@ function containerResizeY(window_height){
'height': window_height_minus_nav + 'px'}
);
$('#project_context, #project_context-header').css(
{'top' : breadcrumbs_height}
);
$('#project_nav-container, #project_tree').css(
{'max-height': (window_height_minus_nav) + 'px',
'height': (window_height_minus_nav) + 'px'}