You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is reproducable on the PHP + mySQL demo on the jsTree demo page.
Example:
a (position 1)
b (position 2)
c (position 3)
move c between a and b: cp=1
move a between b and c: cp=2
The cp reports a different position even though the node is being dropped in the same place.
You will notice that the nodes now appear as expected: c, a, b.
Refresh the page in your browser.
You will now notice that the order of the nodes has changed to c, b, a.
This is fixed in 1.0. Actually when reordering nodes it is quite hard to say which is the correct way to report the position. I believe v.1.0 is better, but v.pre1.0 is configured otherwise and most users have dealt with this in their own code, so I won't be fixing this in pre1.0, only in 1.0.
This issue is reproducable on the PHP + mySQL demo on the jsTree demo page.
Example:
move c between a and b: cp=1
move a between b and c: cp=2
The cp reports a different position even though the node is being dropped in the same place.
You will notice that the nodes now appear as expected: c, a, b.
Refresh the page in your browser.
You will now notice that the order of the nodes has changed to c, b, a.
This issue was initially reported by Daco Harkes in Feb 2010
https://groups.google.com/d/topic/jstree/AnZq7PYHYo0/discussion
The text was updated successfully, but these errors were encountered: