designer: don't reset the frame width and height when it set in the object inspector (bug #0013665)

git-svn-id: trunk@26421 -
This commit is contained in:
paul 2010-07-02 17:56:28 +00:00
parent 3f6251657d
commit 1fce8997f8

View File

@ -101,8 +101,8 @@ begin
// reset anchors
for a := Low(TAnchorKind) to High(TAnchorKind) do
AControl.AnchorSide[a].Control := nil;
// reset bounds
AControl.SetBounds(0, 0, Width, Height);
// reset left, top but save width and height
AControl.SetBounds(0, 0, AControl.Width, AControl.Height);
finally
FChangingBounds := False;
end;