Skip to content

Commit 08a5996

Browse files
committed
Made minimum width member private.
1 parent 7f13472 commit 08a5996

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

ReClass.NET/UI/HotSpotTextBox.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,19 @@ public HotSpot HotSpot
1919
{
2020
hotSpot = value;
2121

22-
SetBounds(hotSpot.Rect.Left + 2, hotSpot.Rect.Top, hotSpot.Rect.Width, hotSpot.Rect.Height);
22+
var rect = hotSpot.Rect;
2323

24-
MinimumWidth = Width;
24+
SetBounds(rect.Left + 2, rect.Top, rect.Width, rect.Height);
25+
26+
minimumWidth = rect.Width;
2527

2628
Text = hotSpot.Text.Trim();
2729
}
2830
}
2931
}
3032

31-
public int MinimumWidth { get; set; }
32-
3333
private FontEx font;
34+
private int minimumWidth;
3435

3536
[Browsable(false)]
3637
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
@@ -94,7 +95,7 @@ protected override void OnTextChanged(EventArgs e)
9495
base.OnTextChanged(e);
9596

9697
var w = (TextLength + 1) * font.Width;
97-
if (w > MinimumWidth)
98+
if (w > minimumWidth)
9899
{
99100
Width = w;
100101
}

ReClass.NET/UI/MemoryViewControl.Designer.cs

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)