Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

Fix editor's bottom panel top margin when switching to a RTL language

Michael Alexsanderb945bcfcb486
diff --git a/scene/gui/tab_container.cpp b/scene/gui/tab_container.cpp
index de85fcabdde..b798e98d2cc 100644
--- a/scene/gui/tab_container.cpp
+++ b/scene/gui/tab_container.cpp
@@ -202,7 +202,9 @@ void TabContainer::_notification(int p_what) {
popup_button->set_button_icon(theme_cache.menu_icon);
internal_container->move_child(popup_button, is_layout_rtl() ? 0 : 1);
}
+
_update_margins();
+ callable_mp(this, &TabContainer::_repaint).call_deferred();
} break;
case NOTIFICATION_THEME_CHANGED: {