RalphM wrote:I tested this and even before adjusting KeyScrollMargins when scrolling down in the list by key down the focused line was always the 2nd but last, going up it always focused the topmost line.
After changing the value to KeyScrollMargins=2, I now always have 3 lines below the focused one on the way down and 2 lines above on the way up.
Something wrong with the calculation here or something else influencing this on my system?
This happens to me if the height of the list view control is *almost* as high as a full number of rows (minus 1 or 2 pixels). In this case it may *look* like the last row is fully displayed but for XY it is not, which optically adds that row at the bottom but not for matters of internal calculation.
If I increase the height of the list view control by a few pixels so that it barely shows the beginning of the next row, then it also *looks* as expected.
I hope I could explain my thoughts understandingly.