mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 11:39:28 +02:00
Qt: fixed returning GetScrollInfo for SIF_POS when it's called from TCustomControls eg. TScrollingWinControl which caused wrong result and mess.
git-svn-id: trunk@32555 -
This commit is contained in:
parent
b8308d269a
commit
f99dd2f18d
@ -3400,7 +3400,12 @@ begin
|
||||
begin
|
||||
// POS
|
||||
if (ScrollInfo.fMask and SIF_POS) <> 0 then
|
||||
ScrollInfo.nPos := QtScrollBar.getValue;
|
||||
begin
|
||||
if QtScrollBar.ChildOfComplexWidget = ccwAbstractScrollArea then
|
||||
ScrollInfo.nPos := QtScrollBar.getSliderPosition
|
||||
else
|
||||
ScrollInfo.nPos := QtScrollBar.getValue;
|
||||
end;
|
||||
|
||||
// RANGE
|
||||
if (ScrollInfo.fMask and SIF_RANGE) <> 0 then
|
||||
|
Loading…
Reference in New Issue
Block a user