IDE: mainbar: disable/enable auto sizing on auto height calculation.

git-svn-id: trunk@54358 -
This commit is contained in:
ondrej 2017-03-07 10:58:04 +00:00
parent f435e4865a
commit ae7acd5803

View File

@ -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;