Menueditor: Set parent of ShadowMenu earlier, otherwise it goes to a wrong place. Issue #30060.

git-svn-id: trunk@52257 -
This commit is contained in:
juha 2016-04-29 10:55:18 +00:00
parent 8e9f6b65f5
commit 148d4cf069

View File

@ -1891,11 +1891,13 @@ begin
GlobalDesignHook.AddHandlerObjectPropertyChanged(@OnObjectPropertyChanged);
GlobalDesignHook.AddHandlerModified(@OnDesignerModified);
GlobalDesignHook.AddHandlerRefreshPropertyValues(@OnDesignerRefreshPropertyValues);
AutoSize := False;
Color := clBtnFace;
BorderStyle := bsNone;
Align := alClient;
// Parent must be set before the Align property.
// Otherwise ShadowMenu goes on top of ButtonsGroupBox which is Top aligned.
Parent := aForm;
AutoSize := False;
Align := alClient;
finally
EnableAutoSizing;
end;