Skip to content

Commit 3fec276

Browse files
committed
Some MyraPad fixes
1 parent 834ec64 commit 3fec276

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/MyraPad/UI/MainForm.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,8 @@ public MainForm(State state)
286286
PropertyGrid.CustomSetter = RecordSetter;
287287
PropertyGrid.Settings.AssetManager = MyraEnvironment.DefaultAssetManager;
288288

289-
_topSplitPane.SetSplitterPosition(0, state != null ? state.TopSplitterPosition1 : 0.25f);
290-
_topSplitPane.SetSplitterPosition(1, state != null ? state.TopSplitterPosition2 : 0.75f);
289+
_topSplitPane.SetSplitterPosition(0, state != null ? state.TopSplitterPosition1 : 0.2f);
290+
_topSplitPane.SetSplitterPosition(1, state != null ? state.TopSplitterPosition2 : 0.6f);
291291
_leftSplitPane.SetSplitterPosition(0, state != null ? state.CenterSplitterPosition : 0.5f);
292292

293293
UpdateMenuFile();
@@ -1645,7 +1645,7 @@ private void BuildExplorerTreeRecursive(ITreeViewNode node, IItemWithId root)
16451645
newNode.Tag = root;
16461646
newNode.IsExpanded = true;
16471647

1648-
var props = root.GetType().GetRuntimeProperties();
1648+
var props = root.GetType().GetProperties(BindingFlags.Public | BindingFlags.Instance);
16491649
var contentProperty = (from p in props where p.FindAttribute<ContentAttribute>() != null select p).FirstOrDefault();
16501650
if (contentProperty == null)
16511651
{

0 commit comments

Comments
 (0)