mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-08 04:37:23 +01:00
* Adjust size after the new text is set
* removed duplicate InvalidatePreferredSize git-svn-id: trunk@14908 -
This commit is contained in:
parent
fba7d394dd
commit
13a16b7d92
@ -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;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
|
||||
Loading…
Reference in New Issue
Block a user