Слияние
This commit is contained in:
@@ -36,7 +36,7 @@ sealed partial class EntityTreeViewerControl
|
||||
ContentPanel.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
|
||||
ContentPanel.Location = new Point(0, 0);
|
||||
ContentPanel.Name = "ContentPanel";
|
||||
ContentPanel.Size = new Size(420, 520);
|
||||
ContentPanel.Size = new Size(400, 500);
|
||||
ContentPanel.TabIndex = 2;
|
||||
ContentPanel.Resize += ContentPanel_Resize;
|
||||
//
|
||||
@@ -46,7 +46,7 @@ sealed partial class EntityTreeViewerControl
|
||||
AutoScaleMode = AutoScaleMode.Font;
|
||||
Controls.Add(ContentPanel);
|
||||
Name = "EntityTreeViewerControl";
|
||||
Size = new Size(420, 520);
|
||||
Size = new Size(400, 500);
|
||||
ResumeLayout(false);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
using Pf2eViewer.EntityTreeViewer;
|
||||
namespace Pf2eViewer.EntityTreeViewer;
|
||||
|
||||
public sealed partial class EntityTreeViewerControl : UserControl
|
||||
public partial class EntityTreeViewerControl : UserControl
|
||||
{
|
||||
private int _itemHeight = 20;
|
||||
|
||||
@@ -88,8 +89,8 @@ public sealed partial class EntityTreeViewerControl : UserControl
|
||||
_viewerRows = _rows.SelectMany(r => r.GetTextRows(this)).ToList();
|
||||
|
||||
ContentPanel.Controls.Clear();
|
||||
|
||||
ContentPanel.Controls.AddRange(_viewerRows.ToArray<Control>());
|
||||
ContentPanel.Controls.AddRange(ViewerRows.ToArray());
|
||||
|
||||
UpdateView();
|
||||
}
|
||||
@@ -124,8 +125,8 @@ public sealed partial class EntityTreeViewerControl : UserControl
|
||||
}
|
||||
|
||||
private void BuildLadder(List<EntityTreeViewerRow> rows)
|
||||
{
|
||||
List<LadderType> lastLadder = [];
|
||||
ContentPanel.VerticalScroll.Visible = true;
|
||||
|
||||
for (int i = rows.Count - 1; i >= 0; i--)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user