mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 03:29:28 +02:00
lcl: TControl: highDPI: don't do AutoSize in DoAutoAdjustLayout - it removes correctly calculated size for autosized controls.
git-svn-id: trunk@54194 -
This commit is contained in:
parent
6d31586364
commit
b4b0cf8831
@ -3010,13 +3010,6 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
// Give a shake at the autosize to recalculate font sizes for example
|
||||
if (not AAWidth or not AAHeight) and AutoSize then
|
||||
begin
|
||||
if AutoSize then AdjustSize();
|
||||
NewWidth := Width;
|
||||
NewHeight := Height;
|
||||
end;
|
||||
if AAWidth then
|
||||
NewWidth := Round(Width * AXProportion);
|
||||
if AAHeight then
|
||||
|
Loading…
Reference in New Issue
Block a user