projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2177f30
)
Fix bug that was leading to oversized tooltips containing multiline text when it...
author
Xunto
<orlovv@herzen.spb.ru>
Thu, 21 Apr 2016 20:26:31 +0000
(23:26 +0300)
committer
Craig Robbins
<kde.psych@gmail.com>
Sat, 23 Apr 2016 11:12:53 +0000
(21:12 +1000)
src/guiFormSpecMenu.cpp
patch
|
blob
|
history
diff --git
a/src/guiFormSpecMenu.cpp
b/src/guiFormSpecMenu.cpp
index 6492eb9d915896076df68d04b0303c09318c0b72..1a6ee91cd237893a4bff733719b432cbd577b834 100644
(file)
--- a/
src/guiFormSpecMenu.cpp
+++ b/
src/guiFormSpecMenu.cpp
@@
-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;