View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0038838||Lazarus||LCL||public||2021-05-01 01:09||2021-05-01 18:17|
|Reporter||jamie philbrook||Assigned To||Michl|
|Summary||0038838: ScrollInView for TscrollingWinControl or scrollbox does not calculate stacked controls.|
|Description||if you place a panel on a scrollbox and place some controls inside that panel, the parented controls of the panel uses its offset of the Panel for the calculations to scroll instead of cycling backwards to the calling scrolling window control.|
In short the end results is you don't see the parented controls of the panel scroll in view properly because the bounds of the panel is not being added to the offset of the child controls.
Please refer to this thread where I took the existing ScrollInView Code and modified it for the purpose of a test..
|Steps To Reproduce||start with a scrollbox|
drop a panel inside it but make sure the top is not at the top of the scrollbox
place a button inside the panel
shrink the scrollbox so the button is hidden from view..
execute the ScrollBox.ScrollInView and watch what happens.
|Tags||No tags attached.|
|Fixed in Revision||65078|
||Applied your code in revision 65078 - thank you for this! Next time, please add a proper patch. Please close.|
||Sorry for that, that was only an experiment open for discussion, I expected the patch would of been something much more detailed from others that may have seen something I didn't.|
Closing the issue.. Thank you.
|2021-05-01 01:09||jamie philbrook||New Issue|
|2021-05-01 17:18||Michl||Assigned To||=> Michl|
|2021-05-01 17:18||Michl||Status||new => assigned|
|2021-05-01 17:50||Michl||Status||assigned => resolved|
|2021-05-01 17:50||Michl||Resolution||open => fixed|
|2021-05-01 17:50||Michl||Fixed in Revision||=> 65078|
|2021-05-01 17:50||Michl||LazTarget||=> -|
|2021-05-01 17:50||Michl||Note Added: 0130707|
|2021-05-01 18:16||jamie philbrook||Note Added: 0130708|
|2021-05-01 18:17||jamie philbrook||Status||resolved => closed|
|2021-05-01 18:17||jamie philbrook||Note Added: 0130709|