mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-23 23:29:59 +08:00
Fixed sidebar rubber-banding when content is expanded
Hopefully for #905 Ideally layout needs to be re-thought
This commit is contained in:
@ -128,7 +128,7 @@ class PageDisplay {
|
|||||||
let $bookTreeParent = $sidebar.parent();
|
let $bookTreeParent = $sidebar.parent();
|
||||||
|
|
||||||
// Check the page is scrollable and the content is taller than the tree
|
// 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
|
// Get current tree's width and header height
|
||||||
let headerHeight = $("#header").height() + $(".toolbar").height();
|
let headerHeight = $("#header").height() + $(".toolbar").height();
|
||||||
|
Reference in New Issue
Block a user