DockedFormEditor: Win32: Fixed wrong form size after changing AutoScroll, see issue #38856

git-svn-id: trunk@65093 -
This commit is contained in:
michl 2021-05-07 19:59:30 +00:00
parent 66493736c2
commit c8e8ad8dc8

View File

@ -10,13 +10,18 @@
}
procedure TScrollingWinControl.SetAutoScroll(Value: Boolean);
var
LOldBounds: TRect;
begin
if FAutoScroll = Value then Exit;
FAutoScroll := Value;
LOldBounds := BoundsRect;
if Value then
UpdateScrollBars
else
HideScrollbars;
if LOldBounds <> BoundsRect then
BoundsRect := LOldBounds;
end;
procedure TScrollingWinControl.CreateWnd;