vue-draggable-nested-tree icon indicating copy to clipboard operation
vue-draggable-nested-tree copied to clipboard

large trees : dragging problem

Open smilingkite opened this issue 7 years ago • 2 comments
trafficstars

In large trees I see dragging problems when the tree is not collapsed.

smilingkite avatar Nov 09 '18 10:11 smilingkite

The problem appears to be solved if in Tree.vue you define your space prop with a type 'number':

space: {type: Number, default: 10},

Right now in autodragplaceholder.js, in line 258:

const ty2 = ty + el.offsetHeight + currentTree.space

appends currentTree.space to the rest instead of adding it. The result is a string.

For instance: ty: 1137, offsetHeight: 57, space: "5", ty2: "11945" instead of ty2: 1199

smilingkite avatar Nov 09 '18 13:11 smilingkite

fixed in 2.1.8

phphe avatar Nov 10 '18 15:11 phphe