Push text input dialogs down a bit in portrait mode

This commit is contained in:
Henrik Rydgård committed 2026-02-26 17:57:06 +01:00
1 parent 3ddea55b9a
commit ecd091b8c4
1 file changed
+6 -1
+6 -1
View File
@@ -134,7 +134,12 @@ void PopupScreen::CreateViews() {
int y = dc.GetBounds().centerY() + offsetY_;
Centering vCentering = Centering::Vertical;
if (alignTop_) {
y = 0;
if (GetDeviceOrientation() == DeviceOrientation::Landscape) {
y = 0;
} else {
// In portrait, we need some space.
y = 200;
}
vCentering = Centering::None;
}