mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-07-28 20:36:30 +02:00
IDE: mainbar: disable/enable auto sizing on auto height calculation.
git-svn-id: trunk@54358 -
This commit is contained in:
parent
f435e4865a
commit
ae7acd5803
@ -419,6 +419,9 @@ begin
|
||||
if not Showing then Exit;
|
||||
|
||||
//DebugLn(['TMainIDEBar.DoSetMainIDEHeight: IDEStarted=', LazarusIDE.IDEStarted]);
|
||||
|
||||
DisableAutoSizing;
|
||||
try
|
||||
if Assigned(IDEDockMaster) then
|
||||
begin
|
||||
if EnvironmentOptions.Desktop.AutoAdjustIDEHeight then
|
||||
@ -450,6 +453,9 @@ begin
|
||||
Constraints.MinHeight := 0;
|
||||
end;
|
||||
end;
|
||||
finally
|
||||
EnableAutoSizing;
|
||||
end;
|
||||
end;
|
||||
|
||||
function TMainIDEBar.CalcNonClientHeight: Integer;
|
||||
|
Loading…
Reference in New Issue
Block a user