sparta: correctly hide/show main menu. Issue #29370

git-svn-id: trunk@51289 -
This commit is contained in:
ondrej 2016-01-14 21:24:12 +00:00
parent 0eceab81b7
commit c5c6957733

View File

@ -834,15 +834,18 @@ end;
procedure TResizerFrame.AppOnIdle(Sender: TObject; var Done: Boolean);
begin
if not FMenuChanged then
Exit;
if FMenuChanged then
begin
if FOldHasMainMenu <> HasMainMenu then
begin
TryBoundDesignedForm;
if Assigned(OnNodePositioning) then
OnNodePositioning(Self, [pkBottom], pcPositioningEnd);
end else
pFakeMenu.Invalidate;
if FOldHasMainMenu <> HasMainMenu then
PositionNodes(Self)
else if FOldHasMainMenu then
pBG.Invalidate;
FMenuChanged := False;
FMenuChanged := False;
end;
end;
destructor TResizerFrame.Destroy;