Skip to content

Commit 7f13472

Browse files
committed
Directly call SetBounds.
1 parent 3a95ffe commit 7f13472

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ReClass.NET/UI/HotSpotTextBox.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@ public HotSpot HotSpot
1919
{
2020
hotSpot = value;
2121

22-
Left = hotSpot.Rect.Left + 2;
23-
Top = hotSpot.Rect.Top;
24-
Width = hotSpot.Rect.Width;
25-
Height = hotSpot.Rect.Height;
22+
SetBounds(hotSpot.Rect.Left + 2, hotSpot.Rect.Top, hotSpot.Rect.Width, hotSpot.Rect.Height);
2623

2724
MinimumWidth = Width;
2825

0 commit comments

Comments
 (0)