mirror of
https://github.com/storytold/gridcraft.git
synced 2026-11-10 12:29:58 -06:00
Scroll positions were stored by (window, sheet index), and nothing re-keyed them when sheets were inserted, deleted or moved. A new PivotTable sheet, which goes in front of its source, opened at the source's position, and the source took over whatever was stored at its new index. Positions are now keyed by (window, sheet uid), so they follow the sheet through inserts, deletes, moves and undo. A closed window's positions are dropped. Saving the active cell still happens when no window is active. Co-Authored-By: Olivier <5681030+tutis@users.noreply.github.com>