From 823936008a2079791fb17ab03f8bc7ebead5923c Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Mon, 2 Sep 2019 07:47:57 -0400 Subject: [PATCH] Properly implement editor as child of EditorPage during the Load routine (as it is in New) --- .../Libraries/UniversalEditor.UserInterface/MainWindow.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CSharp/Libraries/UniversalEditor.UserInterface/MainWindow.cs b/CSharp/Libraries/UniversalEditor.UserInterface/MainWindow.cs index bcfab0af..2fc7bdd2 100644 --- a/CSharp/Libraries/UniversalEditor.UserInterface/MainWindow.cs +++ b/CSharp/Libraries/UniversalEditor.UserInterface/MainWindow.cs @@ -24,6 +24,7 @@ using UniversalWidgetToolkit.Layouts; using UniversalWidgetToolkit.Controls.Ribbon; using UniversalEditor.Printing; using UniversalWidgetToolkit.Printing; +using UniversalEditor.UserInterface.Pages; namespace UniversalEditor.UserInterface { @@ -367,7 +368,10 @@ namespace UniversalEditor.UserInterface //doc.Close(); Editor editor = editors[0].Create(); - InitDocTab(doc.Title, editor); + EditorPage page = new EditorPage(); + page.Controls.Add(editor, new BoxLayout.Constraints(true, true)); + + InitDocTab(doc.Title, page); editor.ObjectModel = doc.ObjectModel; }