]> git.lizzy.rs Git - minetest.git/commitdiff
Fix bug that was leading to oversized tooltips containing multiline text when it...
authorXunto <orlovv@herzen.spb.ru>
Thu, 21 Apr 2016 20:26:31 +0000 (23:26 +0300)
committerCraig Robbins <kde.psych@gmail.com>
Sat, 23 Apr 2016 11:12:53 +0000 (21:12 +1000)
src/guiFormSpecMenu.cpp

index 6492eb9d915896076df68d04b0303c09318c0b72..1a6ee91cd237893a4bff733719b432cbd577b834 100644 (file)
@@ -2253,7 +2253,7 @@ void GUIFormSpecMenu::drawList(const ListDrawSpec &s, int phase,
                                this->bringToFront(m_tooltip_element);
                                m_tooltip_element->setText(utf8_to_wide(tooltip_text).c_str());
                                s32 tooltip_width = m_tooltip_element->getTextWidth() + m_btn_height;
-                               s32 tooltip_height = m_tooltip_element->getTextHeight() * tt_rows.size() + 5;
+                               s32 tooltip_height = m_tooltip_element->getTextHeight() + 5;
                                v2u32 screenSize = driver->getScreenSize();
                                int tooltip_offset_x = m_btn_height;
                                int tooltip_offset_y = m_btn_height;