documentation page

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

View File

@@ -602,10 +602,12 @@ function showContentPartTree (el) {
$($arrow).css({rotate: '0deg'}) $($arrow).css({rotate: '0deg'})
} }
let scroll = $(window)[0].scrollY let scroll = $(window)[0].scrollY
if ($(".left_curtain_documentation")[1]) {
$($(".left_curtain_documentation")[1]).find(".tree_documentation_container").css({height: 'fit-content'}) $($(".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 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)'}) $($(".left_curtain_documentation")[1]).find(".tree_documentation_container").css({height: 'calc(100vh - 300px)'})
} }
}
let waitingTop = null let waitingTop = null
let maxScroll = null let maxScroll = null