summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorGilles Roudiere <gilles.roudiere@gmail.com>2017-09-30 12:43:49 +0200
committerGitHub <noreply@github.com>2017-09-30 12:43:49 +0200
commit670e443046b8444de4813178ca23aeb785e66b0e (patch)
treea9201c3502a060651a58bf76c116f055cab33497 /scene
parentcc846fdf0acb868727855d1c8120eeae936aba9c (diff)
parent814c50106bd080220331c38d0a81c35164fd648f (diff)
Merge pull request #11684 from toger5/tab_container_menu_button_center
Vertical alignement (TabContainer menu button)
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/tab_container.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/tab_container.cpp b/scene/gui/tab_container.cpp
index 80e12e9580..6e50614e8f 100644
--- a/scene/gui/tab_container.cpp
+++ b/scene/gui/tab_container.cpp
@@ -264,9 +264,9 @@ void TabContainer::_notification(int p_what) {
if (popup) {
x -= menu->get_width();
if (mouse_x_cache > x)
- menu_hl->draw(get_canvas_item(), Size2(x, 0));
+ menu_hl->draw(get_canvas_item(), Size2(x, (header_height - menu_hl->get_height()) / 2));
else
- menu->draw(get_canvas_item(), Size2(x, 0));
+ menu->draw(get_canvas_item(), Size2(x, (header_height - menu->get_height()) / 2));
}
// Draw the navigation buttons.