From 0b11ef4024b569dcae2dc0e722405bdbbbb33f21 Mon Sep 17 00:00:00 2001 From: Sunny Date: Mon, 5 Sep 2022 22:14:51 +0800 Subject: [PATCH] =?UTF-8?q?*=20UITextBox:=20=E4=BF=AE=E5=A4=8D=E4=BA=86?= =?UTF-8?q?=E6=97=A0=E6=B0=B4=E5=8D=B0=E6=96=87=E5=AD=97=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E5=85=89=E6=A0=87=E6=9C=89=E6=97=B6=E4=B8=8D=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SunnyUI/Controls/UIEdit.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SunnyUI/Controls/UIEdit.cs b/SunnyUI/Controls/UIEdit.cs index 3ce8ebf7..70abb4bd 100644 --- a/SunnyUI/Controls/UIEdit.cs +++ b/SunnyUI/Controls/UIEdit.cs @@ -78,9 +78,9 @@ namespace Sunny.UI private void waterMarkContainer_Paint(object sender, PaintEventArgs e) { waterMarkContainer.Visible = Watermark.IsValid(); - waterMarkContainer.Location = new Point(3, 0); + waterMarkContainer.Location = new Point(4, -1); waterMarkContainer.Height = this.Height; - waterMarkContainer.Width = this.Width; + waterMarkContainer.Width = this.Width - 4; waterMarkContainer.Anchor = AnchorStyles.Left | AnchorStyles.Right; if (this.ContainsFocus)