diff --git a/Rs.Controls/RsTray.Designer.cs b/Rs.Controls/RsTray.Designer.cs index 0bb8a3b..dfac127 100644 --- a/Rs.Controls/RsTray.Designer.cs +++ b/Rs.Controls/RsTray.Designer.cs @@ -120,6 +120,7 @@ this.Controls.Add(this.panel2); this.Controls.Add(this.panel1); this.Name = "RsTray"; + this.Load += new System.EventHandler(this.RsTray_Load); this.panel1.ResumeLayout(false); this.tableLayoutPanel1.ResumeLayout(false); this.contextMenuStrip1.ResumeLayout(false); diff --git a/Rs.Controls/RsTray.cs b/Rs.Controls/RsTray.cs index d3013ac..0b323bf 100644 --- a/Rs.Controls/RsTray.cs +++ b/Rs.Controls/RsTray.cs @@ -646,6 +646,11 @@ namespace Rs.Controls } DrawTrayAfterEvent?.Invoke(this, ESlotStatus.NotHave,slots); } + + private void RsTray_Load(object sender, EventArgs e) + { + UpdateSlotPos(); + } } /// diff --git a/Rs.Controls/RsTray.resx b/Rs.Controls/RsTray.resx index 78ff28c..c84dc8b 100644 --- a/Rs.Controls/RsTray.resx +++ b/Rs.Controls/RsTray.resx @@ -265,25 +265,25 @@ 17, 17 - 180, 22 + 134, 22 Set empty - 180, 22 + 134, 22 Set filled - 180, 22 + 134, 22 Disable - 181, 92 + 135, 70 contextMenuStrip1