Skip to content

Commit 1db40a8

Browse files
committed
Auto expand node.
1 parent a81d447 commit 1db40a8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Nodes/BitFieldNode.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ public int Bits
4949
public BitFieldNode()
5050
{
5151
Bits = IntPtr.Size * 8;
52+
53+
levelsOpen.DefaultValue = true;
5254
}
5355

5456
/// <summary>Initializes this object with a bit count which equals the other nodes memory size.</summary>
@@ -133,7 +135,7 @@ public override int Draw(ViewInfo view, int x, int y)
133135

134136
using (var brush = new SolidBrush(Program.Settings.ValueColor))
135137
{
136-
view.Context.DrawString("1", view.Font.Font, brush, tx + (bits - 1) * view.Font.Width, y, format);
138+
view.Context.DrawString("1", view.Font.Font, brush, tx + (bits - 1) * view.Font.Width + 1, y, format);
137139

138140
for (var i = 8; i <= bits; i += 8)
139141
{

0 commit comments

Comments
 (0)