From b88070ffc939a335a794a413de50a23fac248229 Mon Sep 17 00:00:00 2001 From: Dmitry Vasilev Date: Tue, 31 Oct 2023 11:28:01 +0800 Subject: [PATCH] fix calltree nav when deep nesting --- index.html | 1 + src/editor/domutils.js | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/index.html b/index.html index bb774e2..7cb7814 100644 --- a/index.html +++ b/index.html @@ -170,6 +170,7 @@ } .call_el { cursor: pointer; + display: inline-block; } .call_header { white-space: nowrap; diff --git a/src/editor/domutils.js b/src/editor/domutils.js index 9558319..51ef427 100644 --- a/src/editor/domutils.js +++ b/src/editor/domutils.js @@ -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 } /*