diff --git a/src/MyraPad/UI/MainForm.cs b/src/MyraPad/UI/MainForm.cs index 18b2343f..ea65bfae 100644 --- a/src/MyraPad/UI/MainForm.cs +++ b/src/MyraPad/UI/MainForm.cs @@ -286,8 +286,8 @@ public MainForm(State state) PropertyGrid.CustomSetter = RecordSetter; PropertyGrid.Settings.AssetManager = MyraEnvironment.DefaultAssetManager; - _topSplitPane.SetSplitterPosition(0, state != null ? state.TopSplitterPosition1 : 0.25f); - _topSplitPane.SetSplitterPosition(1, state != null ? state.TopSplitterPosition2 : 0.75f); + _topSplitPane.SetSplitterPosition(0, state != null ? state.TopSplitterPosition1 : 0.2f); + _topSplitPane.SetSplitterPosition(1, state != null ? state.TopSplitterPosition2 : 0.6f); _leftSplitPane.SetSplitterPosition(0, state != null ? state.CenterSplitterPosition : 0.5f); UpdateMenuFile(); @@ -1645,7 +1645,7 @@ private void BuildExplorerTreeRecursive(ITreeViewNode node, IItemWithId root) newNode.Tag = root; newNode.IsExpanded = true; - var props = root.GetType().GetRuntimeProperties(); + var props = root.GetType().GetProperties(BindingFlags.Public | BindingFlags.Instance); var contentProperty = (from p in props where p.FindAttribute() != null select p).FirstOrDefault(); if (contentProperty == null) {