summaryrefslogtreecommitdiffstats
path: root/core/js/js.js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-08-06 11:45:12 +0200
committerArthur Schiwon <blizzz@owncloud.com>2015-08-07 01:22:45 +0200
commitae27f90efe554d3a8a069165fe14cfd50445855d (patch)
treefd7bbf21516952f88da367f6c86b9d1ede3b53f9 /core/js/js.js
parenteb323fe8dee06a3685793f7e08748f303add7766 (diff)
downloadnextcloud-server-ae27f90efe554d3a8a069165fe14cfd50445855d.tar.gz
nextcloud-server-ae27f90efe554d3a8a069165fe14cfd50445855d.zip
Fix app-content scrollbar when app-sidebar is open
Diffstat (limited to 'core/js/js.js')
-rw-r--r--core/js/js.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/js/js.js b/core/js/js.js
index 45c9c90362f..72d4edd28dd 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -1366,13 +1366,13 @@ 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() - getScrollBarWidth();
+ controlsWidth = $('#content').width() - $('#app-navigation').width() - $('#app-sidebar').width() - getScrollBarWidth();
} else {
controlsWidth = $('#content').width() - getScrollBarWidth();
}
} else { // if there is none
if($(window).width() > 768) {
- controlsWidth = $('#content').width() - $('#app-navigation').width();
+ controlsWidth = $('#content').width() - $('#app-navigation').width() - $('#app-sidebar').width();
} else {
controlsWidth = $('#content').width();
}