mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-19 14:29:29 +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;
|
||||
const aRange,aPage,aPos: Integer);
|
||||
var
|
||||
NeedUpdate: Boolean;
|
||||
begin
|
||||
{$ifdef DbgScroll}
|
||||
DebugLn('TCustomGrid.UpdateHorzScrollbar: Vis=%s Range=%d Page=%d aPos=%d',
|
||||
[dbgs(aVisible),aRange, aPage, aPos]);
|
||||
{$endif}
|
||||
if FHSbVisible<>Ord(aVisible) then
|
||||
NeedUpdate := FHSbVisible <> Ord(AVisible);
|
||||
if NeedUpdate then
|
||||
ScrollBarShow(SB_HORZ, aVisible);
|
||||
if aVisible then
|
||||
if aVisible or NeedUpdate then
|
||||
ScrollBarRange(SB_HORZ, aRange, aPage, aPos);
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user