From 7f2e694e25f1b0c1969a7f862403079001216b80 Mon Sep 17 00:00:00 2001 From: dima_florea Date: Thu, 31 Oct 2024 20:54:40 +0300 Subject: [PATCH] UI: Set UseFloatingWatermark to false when the watermark is empty --- src/Ryujinx/UI/Applet/SwkbdAppletDialog.axaml.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Ryujinx/UI/Applet/SwkbdAppletDialog.axaml.cs b/src/Ryujinx/UI/Applet/SwkbdAppletDialog.axaml.cs index af3837e43d..b6452a10b2 100644 --- a/src/Ryujinx/UI/Applet/SwkbdAppletDialog.axaml.cs +++ b/src/Ryujinx/UI/Applet/SwkbdAppletDialog.axaml.cs @@ -34,6 +34,10 @@ public SwkbdAppletDialog(string mainText, string secondaryText, string placehold Input.Watermark = _placeholder; + if (string.IsNullOrWhiteSpace(Input.Watermark)) { + Input.UseFloatingWatermark = false; + } + Input.AddHandler(TextInputEvent, Message_TextInput, RoutingStrategies.Tunnel, true); }