fix calltree nav when deep nesting

This commit is contained in:
Dmitry Vasilev
2023-10-31 11:28:01 +08:00
parent d35ae9ae59
commit b88070ffc9
2 changed files with 1 additions and 4 deletions

View File

@@ -170,6 +170,7 @@
}
.call_el {
cursor: pointer;
display: inline-block;
}
.call_header {
white-space: nowrap;

View File

@@ -81,16 +81,12 @@ export const scrollIntoViewIfNeeded = (container, target) => {
if(target.offsetTop - container.scrollTop - container.offsetTop < 0){
// The top of the target will be aligned to the top of the visible area of the scrollable ancestor
target.scrollIntoView(true);
// Do not scroll horizontally
container.scrollLeft = 0
}
// Target is outside the view from the bottom
if(target.offsetTop - container.scrollTop - container.offsetTop - container.clientHeight + target.clientHeight > 0) {
// The bottom of the target will be aligned to the bottom of the visible area of the scrollable ancestor.
target.scrollIntoView(false);
// Do not scroll horizontally
container.scrollLeft = 0
}
/*