Web: Components: Fix scroll when file element is not visible
This commit is contained in:
parent
124afc4a05
commit
9c1b938703
@ -34,7 +34,7 @@ class HotkeyStore {
|
||||
|
||||
scrollToCaret = () => {
|
||||
const { offsetTop, item } = this.getItemOffset();
|
||||
const scroll = document.getElementsByClassName("section-scroll")[0];
|
||||
const scroll = document.getElementById("sectionScroll");
|
||||
const scrollRect = scroll?.getBoundingClientRect();
|
||||
|
||||
if (item && item[0]) {
|
||||
|
Loading…
Reference in New Issue
Block a user