From 8bde86da10eacff9221a19a2806eb2ece789de03 Mon Sep 17 00:00:00 2001 From: Michael Alexsander Date: Sun, 6 Feb 2022 23:07:08 -0300 Subject: Make popups from `MenuButton`, `OptionButton`, and submenus obey the layout direction --- scene/gui/menu_button.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scene/gui/menu_button.cpp') diff --git a/scene/gui/menu_button.cpp b/scene/gui/menu_button.cpp index a985a9d031..94fa5d81d8 100644 --- a/scene/gui/menu_button.cpp +++ b/scene/gui/menu_button.cpp @@ -136,6 +136,9 @@ int MenuButton::get_item_count() const { void MenuButton::_notification(int p_what) { switch (p_what) { + case NOTIFICATION_LAYOUT_DIRECTION_CHANGED: { + popup->set_layout_direction((Window::LayoutDirection)get_layout_direction()); + } break; case NOTIFICATION_VISIBILITY_CHANGED: { if (!is_visible_in_tree()) { popup->hide(); -- cgit v1.2.3