View Issue Details

IDProjectCategoryView StatusLast Update
0038838LazarusLCLpublic2021-05-01 18:17
Reporterjamie philbrook Assigned ToMichl  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version2.0.12 
Summary0038838: ScrollInView for TscrollingWinControl or scrollbox does not calculate stacked controls.
Descriptionif 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..
https://forum.lazarus.freepascal.org/index.php/topic,54354.0.html


Steps To Reproducestart 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.
TagsNo tags attached.
Fixed in Revision65078
LazTarget-
Widgetset
Attached Files

Activities

Michl

2021-05-01 17:50

developer   ~0130707

Applied your code in revision 65078 - thank you for this! Next time, please add a proper patch. Please close.

jamie philbrook

2021-05-01 18:16

reporter   ~0130708

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.

jamie philbrook

2021-05-01 18:17

reporter   ~0130709

Closing the issue.. Thank you.

Issue History

Date Modified Username Field Change
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