Эх сурвалжийг харах

UI: Set UseFloatingWatermark to false when the watermark is empty (#135)

sovervo 1 жил өмнө
parent
commit
fb4ab5ea08

+ 5 - 0
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);
         }