Skip to content

Commit

Permalink
Fix bug that was leading to oversized tooltips containing multiline t…
Browse files Browse the repository at this point in the history
…ext when it have multiple lines
  • Loading branch information
xunto authored and Zeno- committed Apr 23, 2016
1 parent 2177f30 commit 21079cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/guiFormSpecMenu.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 21079cc

Please sign in to comment.