LCL: TCustomSplitter.AnchorSplitter: disable autosizing

git-svn-id: trunk@36866 -
This commit is contained in:
mattias 2012-04-17 08:03:17 +00:00
parent 925be78561
commit 73fef58a27

View File

@ -525,8 +525,10 @@ begin
else
Cursor := crVSplit;
if not (csLoading in ComponentState) then
begin
Align := alNone;
Invalidate;
end;
end;
procedure TCustomSplitter.SetResizeControl(const AValue: TControl);
@ -959,8 +961,10 @@ var
OldWidth: LongInt;
OldHeight: LongInt;
begin
OldWidth := Self.Width;
OldHeight := Self.Height;
DisableAutoSizing;
try
OldWidth := Width;
OldHeight := Height;
OldResizeAnchor := FResizeAnchor;
Align := alNone;
FResizeAnchor := Kind;
@ -988,6 +992,9 @@ begin
else
Height := OldWidth;
end;
finally
EnableAutoSizing;
end;
end;
// included by extctrls.pp