documentation page

This commit is contained in:
SBD
2024-07-18 14:18:42 +03:00
parent c573d29eb1
commit 7a95c5c3ef

View File

@@ -602,9 +602,11 @@ function showContentPartTree (el) {
$($arrow).css({rotate: '0deg'})
}
let scroll = $(window)[0].scrollY
$($(".left_curtain_documentation")[1]).find(".tree_documentation_container").css({height: 'fit-content'})
maxScroll = scroll + $(".documentation_block")[0].getBoundingClientRect().bottom - $(".left_curtain_documentation")[1].offsetHeight - 172
$($(".left_curtain_documentation")[1]).find(".tree_documentation_container").css({height: 'calc(100vh - 300px)'})
if ($(".left_curtain_documentation")[1]) {
$($(".left_curtain_documentation")[1]).find(".tree_documentation_container").css({height: 'fit-content'})
maxScroll = scroll + $(".documentation_block")[0].getBoundingClientRect().bottom - $(".left_curtain_documentation")[1].offsetHeight - 172
$($(".left_curtain_documentation")[1]).find(".tree_documentation_container").css({height: 'calc(100vh - 300px)'})
}
}
let waitingTop = null
let maxScroll = null