diff options
author | Matthew Newall <matthewnewall@hotmail.com> | 2021-09-13 02:32:57 +0000 |
---|---|---|
committer | Matthew Newall <matthewnewall@hotmail.com> | 2021-09-19 03:06:36 +0000 |
commit | 3951a05535b907b4a58278fb7c50993b0ed81c69 (patch) | |
tree | fc6857f3a734e352dcb06f547523492bcc62daaf /scene/gui/popup_menu.cpp | |
parent | b1063a7c02c313719fed660feba544dbcd1dac89 (diff) | |
download | redot-engine-3951a05535b907b4a58278fb7c50993b0ed81c69.tar.gz |
Corrected directional properties to be ordered Left->Top->Right->Bottom
Diffstat (limited to 'scene/gui/popup_menu.cpp')
-rw-r--r-- | scene/gui/popup_menu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/popup_menu.cpp b/scene/gui/popup_menu.cpp index c0a559e624..721590666e 100644 --- a/scene/gui/popup_menu.cpp +++ b/scene/gui/popup_menu.cpp @@ -794,10 +794,10 @@ void PopupMenu::_notification(int p_what) { // Set margin on the margin container Ref<StyleBox> panel_style = get_theme_stylebox(SNAME("panel")); - margin_container->add_theme_constant_override("margin_top", panel_style->get_margin(Side::SIDE_TOP)); - margin_container->add_theme_constant_override("margin_bottom", panel_style->get_margin(Side::SIDE_BOTTOM)); margin_container->add_theme_constant_override("margin_left", panel_style->get_margin(Side::SIDE_LEFT)); + margin_container->add_theme_constant_override("margin_top", panel_style->get_margin(Side::SIDE_TOP)); margin_container->add_theme_constant_override("margin_right", panel_style->get_margin(Side::SIDE_RIGHT)); + margin_container->add_theme_constant_override("margin_bottom", panel_style->get_margin(Side::SIDE_BOTTOM)); } } break; } |