From fb4ab5ea08544eb7078415c12a37441378e228c9 Mon Sep 17 00:00:00 2001 From: sovervo <34394156+sovervo@users.noreply.github.com> Date: Fri, 1 Nov 2024 14:46:15 +0300 Subject: [PATCH] UI: Set UseFloatingWatermark to false when the watermark is empty (#135) --- src/Ryujinx/UI/Applet/SwkbdAppletDialog.axaml.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Ryujinx/UI/Applet/SwkbdAppletDialog.axaml.cs b/src/Ryujinx/UI/Applet/SwkbdAppletDialog.axaml.cs index af3837e43..5d805381c 100644 --- a/src/Ryujinx/UI/Applet/SwkbdAppletDialog.axaml.cs +++ b/src/Ryujinx/UI/Applet/SwkbdAppletDialog.axaml.cs @@ -34,6 +34,11 @@ namespace Ryujinx.Ava.UI.Controls Input.Watermark = _placeholder; + if (string.IsNullOrWhiteSpace(Input.Watermark)) + { + Input.UseFloatingWatermark = false; + } + Input.AddHandler(TextInputEvent, Message_TextInput, RoutingStrategies.Tunnel, true); }