Properly implement editor as child of EditorPage during the Load routine (as it is in New)

This commit is contained in:
Michael Becker 2019-09-02 07:47:57 -04:00
parent 4c1138198d
commit 823936008a

View File

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