|
|
@@ -1393,13 +1393,19 @@ function initCore() { |
|
|
|
// if there is a scrollbar … |
|
|
|
if($('#app-content').get(0).scrollHeight > $('#app-content').height()) { |
|
|
|
if($(window).width() > 768) { |
|
|
|
controlsWidth = $('#content').width() - $('#app-navigation').width() - $('#app-sidebar').width() - getScrollBarWidth(); |
|
|
|
controlsWidth = $('#content').width() - $('#app-navigation').width() - getScrollBarWidth(); |
|
|
|
if (!$('#app-sidebar').hasClass('hidden') && !$('#app-sidebar').hasClass('disappear')) { |
|
|
|
controlsWidth -= $('#app-sidebar').width(); |
|
|
|
} |
|
|
|
} else { |
|
|
|
controlsWidth = $('#content').width() - getScrollBarWidth(); |
|
|
|
} |
|
|
|
} else { // if there is none |
|
|
|
if($(window).width() > 768) { |
|
|
|
controlsWidth = $('#content').width() - $('#app-navigation').width() - $('#app-sidebar').width(); |
|
|
|
controlsWidth = $('#content').width() - $('#app-navigation').width(); |
|
|
|
if (!$('#app-sidebar').hasClass('hidden') && !$('#app-sidebar').hasClass('disappear')) { |
|
|
|
controlsWidth -= $('#app-sidebar').width(); |
|
|
|
} |
|
|
|
} else { |
|
|
|
controlsWidth = $('#content').width(); |
|
|
|
} |
|
|
@@ -1411,7 +1417,7 @@ function initCore() { |
|
|
|
|
|
|
|
$(window).resize(_.debounce(adjustControlsWidth, 250)); |
|
|
|
|
|
|
|
$('body').delegate('#app-content', 'apprendered', adjustControlsWidth); |
|
|
|
$('body').delegate('#app-content', 'apprendered appresized', adjustControlsWidth); |
|
|
|
|
|
|
|
} |
|
|
|
|