From: Dan Brown Date: Sat, 22 Sep 2018 14:52:09 +0000 (+0100) Subject: Fixed sidebar rubber-banding when content is expanded X-Git-Tag: v0.24.0~1^2~16^2 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/6dec485b45df2290cf1590733e938f052342a686 Fixed sidebar rubber-banding when content is expanded Hopefully for #905 Ideally layout needs to be re-thought --- diff --git a/resources/assets/js/components/page-display.js b/resources/assets/js/components/page-display.js index 260600d34..3fd8fb8ef 100644 --- a/resources/assets/js/components/page-display.js +++ b/resources/assets/js/components/page-display.js @@ -128,7 +128,7 @@ class PageDisplay { let $bookTreeParent = $sidebar.parent(); // Check the page is scrollable and the content is taller than the tree - let pageScrollable = ($(document).height() > $window.height()) && ($sidebar.height() < $('.page-content').height()); + let pageScrollable = ($(document).height() > ($window.height() + 40)) && ($sidebar.height() < $('.page-content').height()); // Get current tree's width and header height let headerHeight = $("#header").height() + $(".toolbar").height();