mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 19:59:17 +02:00
Merged revision(s) 55433 #658713d714 from trunk:
Sparta_DockedFormEditor: Fixed drawing of MainMenu after adding the first MenuItem. Issue #31206 ........ git-svn-id: branches/fixes_1_8@55469 -
This commit is contained in:
parent
aa4d6f264c
commit
7dc324bf23
@ -923,11 +923,15 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TBasicResizeFrame.AppOnIdle(Sender: TObject; var Done: Boolean);
|
procedure TBasicResizeFrame.AppOnIdle(Sender: TObject; var Done: Boolean);
|
||||||
|
var
|
||||||
|
aHasMainMenu: Boolean;
|
||||||
begin
|
begin
|
||||||
if FDesignerModified then
|
if FDesignerModified then
|
||||||
begin
|
begin
|
||||||
if FOldHasMainMenu <> HasMainMenu then
|
aHasMainMenu := HasMainMenu;
|
||||||
|
if aHasMainMenu <> FOldHasMainMenu then
|
||||||
begin
|
begin
|
||||||
|
FOldHasMainMenu := aHasMainMenu;
|
||||||
TryBoundDesignedForm;
|
TryBoundDesignedForm;
|
||||||
if Assigned(OnNodePositioning) then
|
if Assigned(OnNodePositioning) then
|
||||||
OnNodePositioning(Self, [pkBottom], pcPositioningEnd);
|
OnNodePositioning(Self, [pkBottom], pcPositioningEnd);
|
||||||
@ -1031,8 +1035,6 @@ begin
|
|||||||
pClient.Width := Width - pClient.Left - Max(Width - (pR.Left - BgRightMargin), 0);
|
pClient.Width := Width - pClient.Left - Max(Width - (pR.Left - BgRightMargin), 0);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
FOldHasMainMenu := HasMainMenu;
|
|
||||||
|
|
||||||
for Node := 0 to 7 do
|
for Node := 0 to 7 do
|
||||||
begin
|
begin
|
||||||
with AroundControl do
|
with AroundControl do
|
||||||
|
Loading…
Reference in New Issue
Block a user