(Android) Made the multiline text edit popup smaller when using the Android soft keyboard

This commit is contained in:
Leon Styhre 2024-02-07 22:33:35 +01:00
parent 3da749c5e3
commit a8f93cb2bb

View file

@ -97,8 +97,13 @@ GuiTextEditPopup::GuiTextEditPopup(const HelpStyle& helpstyle,
float textHeight = mText->getFont()->getHeight(); float textHeight = mText->getFont()->getHeight();
#if defined(__ANDROID__)
if (multiLine)
textHeight *= 2.0f;
#else
if (multiLine) if (multiLine)
textHeight *= 6.0f; textHeight *= 6.0f;
#endif
mText->setSize(0.0f, textHeight); mText->setSize(0.0f, textHeight);