From 7242a192c1c4d795cc21cf4786733ff8fdcd91c0 Mon Sep 17 00:00:00 2001 From: Sunny Date: Tue, 7 Feb 2023 21:28:09 +0800 Subject: [PATCH] =?UTF-8?q?*=20UIDropControl:=20=E4=B8=8B=E6=8B=89?= =?UTF-8?q?=E6=A1=86=E6=8E=A7=E4=BB=B6=E5=A2=9E=E5=8A=A0Tips=E5=B0=8F?= =?UTF-8?q?=E7=BA=A2=E7=82=B9=20*=20UITextBox:=20=E5=A2=9E=E5=8A=A0Tips?= =?UTF-8?q?=E5=B0=8F=E7=BA=A2=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SunnyUI/Controls/DropItem/UIDropControl.Designer.cs | 1 + SunnyUI/Controls/UITextBox.Designer.cs | 1 + SunnyUI/Controls/UITextBox.cs | 5 +++++ 3 files changed, 7 insertions(+) diff --git a/SunnyUI/Controls/DropItem/UIDropControl.Designer.cs b/SunnyUI/Controls/DropItem/UIDropControl.Designer.cs index fcd75ee6..9fbebfa6 100644 --- a/SunnyUI/Controls/DropItem/UIDropControl.Designer.cs +++ b/SunnyUI/Controls/DropItem/UIDropControl.Designer.cs @@ -15,6 +15,7 @@ { if (disposing && (components != null)) { + CloseTips(); components.Dispose(); } diff --git a/SunnyUI/Controls/UITextBox.Designer.cs b/SunnyUI/Controls/UITextBox.Designer.cs index d168a771..e70dd4cc 100644 --- a/SunnyUI/Controls/UITextBox.Designer.cs +++ b/SunnyUI/Controls/UITextBox.Designer.cs @@ -15,6 +15,7 @@ { if (disposing && (components != null)) { + CloseTips(); components.Dispose(); } base.Dispose(disposing); diff --git a/SunnyUI/Controls/UITextBox.cs b/SunnyUI/Controls/UITextBox.cs index 9e4fc37c..8ed716a6 100644 --- a/SunnyUI/Controls/UITextBox.cs +++ b/SunnyUI/Controls/UITextBox.cs @@ -646,6 +646,11 @@ namespace Sunny.UI { base.OnSizeChanged(e); SizeChange(); + + if (tipsBtn != null) + { + tipsBtn.Location = new System.Drawing.Point(Width - 11, 2); + } } protected override void OnPaddingChanged(EventArgs e)