Fixed document panel when opening sharing link
This commit is contained in:
parent
cdb42d807a
commit
0ef074c1a1
@ -177,7 +177,8 @@ define([
|
|||||||
filterFiles('');
|
filterFiles('');
|
||||||
|
|
||||||
// Scroll to the active file
|
// Scroll to the active file
|
||||||
panelContentElt.scrollTop += documentListElt.querySelector('.file.active').getBoundingClientRect().top - 120;
|
var activeElt = documentListElt.querySelector('.file.active');
|
||||||
|
activeElt && (panelContentElt.scrollTop += activeElt.getBoundingClientRect().top - 120);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user