mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 11:16:09 +02:00
LCL/grids: Fix misplaced horizontal grid scrollbar after form maximize. Issue #35472, patch by Pavol S.
git-svn-id: trunk@62031 -
This commit is contained in:
parent
04138e9fe7
commit
9cad1b3feb
@ -7932,14 +7932,17 @@ end;
|
|||||||
|
|
||||||
procedure TCustomGrid.UpdateHorzScrollBar(const aVisible: boolean;
|
procedure TCustomGrid.UpdateHorzScrollBar(const aVisible: boolean;
|
||||||
const aRange,aPage,aPos: Integer);
|
const aRange,aPage,aPos: Integer);
|
||||||
|
var
|
||||||
|
NeedUpdate: Boolean;
|
||||||
begin
|
begin
|
||||||
{$ifdef DbgScroll}
|
{$ifdef DbgScroll}
|
||||||
DebugLn('TCustomGrid.UpdateHorzScrollbar: Vis=%s Range=%d Page=%d aPos=%d',
|
DebugLn('TCustomGrid.UpdateHorzScrollbar: Vis=%s Range=%d Page=%d aPos=%d',
|
||||||
[dbgs(aVisible),aRange, aPage, aPos]);
|
[dbgs(aVisible),aRange, aPage, aPos]);
|
||||||
{$endif}
|
{$endif}
|
||||||
if FHSbVisible<>Ord(aVisible) then
|
NeedUpdate := FHSbVisible <> Ord(AVisible);
|
||||||
|
if NeedUpdate then
|
||||||
ScrollBarShow(SB_HORZ, aVisible);
|
ScrollBarShow(SB_HORZ, aVisible);
|
||||||
if aVisible then
|
if aVisible or NeedUpdate then
|
||||||
ScrollBarRange(SB_HORZ, aRange, aPage, aPos);
|
ScrollBarRange(SB_HORZ, aRange, aPage, aPos);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user