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
}
/*