scholarslab/Neatline — Issue #58: Item tray gets knocked out of sync in editor by reordering and new records
Author: davidmcclure
Created: 2012-01-02 17:39:19+00:00
State: open

In the editor, after either (a) reordering items or (b) adding a new record that get's pulled into the items list, the scrolling functionality on the item tray gets knocked out of whack. It appears that both:

- The recorded top offsets for the titles are not getting updated, meaning that the scrolling can focus on some random point in the middle of an item description instead of focusing at the top of the title;

- The id ordering tracker array is not getting updated after a reorder, which causes the scrolling to hop back and forth according to the _old_ ordering.

In the editor, page reload always solves the problem. The bugs are not present at all in public exhibit views, since record add and item reorder obviously do not occur.