Fix issue with Spark Grid scrolling/alignment when using locked columns/rows
Contrary to StackOverflow belief, lockedColumnCount and lockedRowCount are usable in the Spark DataGrid, but the item renderer "selected" state is misaligned. Scrollbars are also misaligned when changing dataProvider. This fixes it.
You can merge this pull request into a Git repository by running:
Sure, I deleted that particular sandbox a while ago but I can describe it. Start with the old s:DataGrid, give it a dataset large enough to give it a nice long pair of scrollbars. Now set a couple of rows and columns to be locked (one column and three rows, I used). You'll need to provide a custom cell renderer like we had that sets its own background using the "selected" state instead of letting the control background show through (we were using this because some cells needed to be different colours and still indicate when they were selected). Run that and select some random cells. Notice that inside the main scrollable area the highlight is offset by the number of rows that are locked (not columns). If you have a second dataset that is smaller, switching to that while the data is scrolled all the way will also misalign the panes.