mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-07 07:35:58 +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;
|
if not Showing then Exit;
|
||||||
|
|
||||||
//DebugLn(['TMainIDEBar.DoSetMainIDEHeight: IDEStarted=', LazarusIDE.IDEStarted]);
|
//DebugLn(['TMainIDEBar.DoSetMainIDEHeight: IDEStarted=', LazarusIDE.IDEStarted]);
|
||||||
|
|
||||||
|
DisableAutoSizing;
|
||||||
|
try
|
||||||
if Assigned(IDEDockMaster) then
|
if Assigned(IDEDockMaster) then
|
||||||
begin
|
begin
|
||||||
if EnvironmentOptions.Desktop.AutoAdjustIDEHeight then
|
if EnvironmentOptions.Desktop.AutoAdjustIDEHeight then
|
||||||
@ -450,6 +453,9 @@ begin
|
|||||||
Constraints.MinHeight := 0;
|
Constraints.MinHeight := 0;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
finally
|
||||||
|
EnableAutoSizing;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TMainIDEBar.CalcNonClientHeight: Integer;
|
function TMainIDEBar.CalcNonClientHeight: Integer;
|
||||||
|
Loading…
Reference in New Issue
Block a user