diff options
author | toger5 <toger5@hotmail.de> | 2017-09-29 13:23:11 +0200 |
---|---|---|
committer | toger5 <toger5@hotmail.de> | 2017-09-29 13:23:11 +0200 |
commit | 814c50106bd080220331c38d0a81c35164fd648f (patch) | |
tree | ea266a24dc74c88f6aa599827c038f198d48f9c4 | |
parent | dee100139008bd4dd8c270da6a7f5aa326a32c25 (diff) |
Vertical alignement (TabContainer menu button)
-rw-r--r-- | scene/gui/tab_container.cpp | 4 |
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. |