Merge pull request #96557 from akien-mga/3.x-PopupMenu-update-margins-on-visibility-change
[3.x] PopupMenu: Update margins on visibility change
This commit is contained in:
commit
1b0526226f
1 changed files with 2 additions and 0 deletions
|
@ -646,6 +646,8 @@ void PopupMenu::_notification(int p_what) {
|
|||
case NOTIFICATION_POST_POPUP: {
|
||||
initial_button_mask = Input::get_singleton()->get_mouse_button_mask();
|
||||
during_grabbed_click = (bool)initial_button_mask;
|
||||
} break;
|
||||
case NOTIFICATION_VISIBILITY_CHANGED: {
|
||||
// Set margin on the margin container
|
||||
Ref<StyleBox> panel_style = get_stylebox("panel");
|
||||
margin_container->add_constant_override("margin_top", panel_style->get_margin(Margin::MARGIN_TOP));
|
||||
|
|
Loading…
Reference in a new issue