add scrolling margins, #1181

This commit is contained in:
zadam 2020-08-09 23:20:57 +02:00
parent 224fbdc8cd
commit 960d7dede3

View file

@ -307,6 +307,10 @@ export default class NoteTreeWidget extends TabAwareWidget {
keyboard: false, // we takover keyboard handling in the hotkeys plugin
extensions: utils.isMobile() ? ["dnd5", "clones"] : ["hotkeys", "dnd5", "clones"],
source: treeData,
scrollOfs: {
top: 200,
bottom: 200
},
scrollParent: this.$tree,
minExpandLevel: 2, // root can't be collapsed
click: (event, data) => {