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; }