mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 04:09:20 +02:00
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:
parent
8e9f6b65f5
commit
148d4cf069
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user