Skip to content

Commit

Permalink
document.body not available on init (fix regression)
Browse files Browse the repository at this point in the history
Close #1021
  • Loading branch information
mar10 committed Jul 25, 2020
1 parent 1271a11 commit 3de09e1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# 2.36.1 / Unreleased
# 2.36.2 / Unreleased

# 2.36.1 / 2020-07-25
* [Fixed] #1021 ext-dnd5 Regression in drop marker

# 2.36.0 / 2020-07-15
* [Changed] #1005 Cast key to string in getNodeByKey()
Expand Down
3 changes: 2 additions & 1 deletion src/jquery.fancytree.dnd5.js
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,8 @@
autoExpandMS: 1500, // Expand nodes after n milliseconds of hovering
dropMarkerInsertOffsetX: -16, // Additional offset for drop-marker with hitMode = "before"/"after"
dropMarkerOffsetX: -24, // Absolute position offset for .fancytree-drop-marker relatively to ..fancytree-title (icon/img near a node accepting drop)
dropMarkerParent: document.body, // Root Container used for drop marker (could be a shadow root)
// #1021 `document.body` is not available yet
dropMarkerParent: "body", // Root Container used for drop marker (could be a shadow root)
multiSource: false, // true: Drag multiple (i.e. selected) nodes. Also a callback() is allowed
effectAllowed: "all", // Restrict the possible cursor shapes and modifier operations (can also be set in the dragStart event)
// dropEffect: "auto", // 'copy'|'link'|'move'|'auto'(calculate from `effectAllowed`+modifier keys) or callback(node, data) that returns such string.
Expand Down

0 comments on commit 3de09e1

Please sign in to comment.