Skip to content

Commit

Permalink
TextInputWidget: Use Font::getLineHeight()
Browse files Browse the repository at this point in the history
  • Loading branch information
dscharrer committed Jun 23, 2018
1 parent 1cb2816 commit 3311c77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/widget/TextInputWidget.cpp
Expand Up @@ -37,7 +37,7 @@ TextInputWidget::TextInputWidget(Font * font, const std::string & text, const Re
, m_editing(false)
{
m_rect = rect;
m_rect.bottom = m_rect.top + m_font->getTextSize("|").height();
m_rect.bottom = m_rect.top + m_font->getLineHeight() + 1;
setText(text);
}

Expand Down

0 comments on commit 3311c77

Please sign in to comment.