Smoth-scrolled StringGrid with varying row heights does not fully show jumped-to cells
Original Reporter info from Mantis: wp @wpam
-
Reporter name:
Original Reporter info from Mantis: wp @wpam
- Reporter name:
Description:
Setting the Row property to some row index in a StringGrid normally shows the destination row in is full height. The StringGrid of trunk, however, occasionally displays partial cells if the row height varies from row to row. This happens only of the Option goSmoothScroll is set - if goSmoothScroll is off the destination cell is fully shown.
Steps to reproduce:
Please run attached demo. It contains a stringgrid with 100 rows having random row heights. Click on the button "Jump to row..." to move the active cell to row 32 - note that the destination row then is only partially displayed in its height. Alternatively you can also go to row 31 - here the destination row is completely off-screen. There are certainly other rows to see the same effect.
Turn off the smooth-scroll feature (by unchecking the corresponding checkbox) and repeat. Now the behavior is normal, the destination cell is fully visible.
Mantis conversion info:
- Mantis ID: 30678
- Version: 1.7 (SVN)
- Fixed in revision: 53262 (#1b4e67aa)