From a8f93cb2bbc1b072b95903cae95a603476091a4f Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Wed, 7 Feb 2024 22:33:35 +0100 Subject: [PATCH] (Android) Made the multiline text edit popup smaller when using the Android soft keyboard --- es-core/src/guis/GuiTextEditPopup.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/es-core/src/guis/GuiTextEditPopup.cpp b/es-core/src/guis/GuiTextEditPopup.cpp index b86dc858f..0d95eada9 100644 --- a/es-core/src/guis/GuiTextEditPopup.cpp +++ b/es-core/src/guis/GuiTextEditPopup.cpp @@ -97,8 +97,13 @@ GuiTextEditPopup::GuiTextEditPopup(const HelpStyle& helpstyle, float textHeight = mText->getFont()->getHeight(); +#if defined(__ANDROID__) + if (multiLine) + textHeight *= 2.0f; +#else if (multiLine) textHeight *= 6.0f; +#endif mText->setSize(0.0f, textHeight);