* Adjust size after the new text is set

* removed duplicate InvalidatePreferredSize

git-svn-id: trunk@14908 -
This commit is contained in:
marc 2008-04-20 15:09:10 +00:00
parent fba7d394dd
commit 13a16b7d92

View File

@ -4718,7 +4718,6 @@ end;
procedure TWinControl.WSSetText(const AText: String);
begin
TWSWinControlClass(WidgetSetClass).SetText(Self, AText);
InvalidatePreferredSize;
end;
{------------------------------------------------------------------------------
@ -7206,10 +7205,10 @@ begin
begin
WSSetText(AValue);
InvalidatePreferredSize;
//DebugLn(['TWinControl.RealSetText ',DbgSName(Self),' ',AValue]);
inherited RealSetText(AValue);
AdjustSize;
end;
inherited RealSetText(AValue);
end
else inherited RealSetText(AValue);
end;
{------------------------------------------------------------------------------