From d5f37f80ba325eccc3fad7932dd92b3a195398f5 Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Wed, 31 Jul 2019 21:34:24 -0400 Subject: [PATCH] Editor should fill the container --- .../UniversalEditor.UserInterface/Pages/EditorPage.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/CSharp/Libraries/UniversalEditor.UserInterface/Pages/EditorPage.cs b/CSharp/Libraries/UniversalEditor.UserInterface/Pages/EditorPage.cs index a36867cb..414725ce 100644 --- a/CSharp/Libraries/UniversalEditor.UserInterface/Pages/EditorPage.cs +++ b/CSharp/Libraries/UniversalEditor.UserInterface/Pages/EditorPage.cs @@ -26,6 +26,8 @@ using UniversalEditor.Accessors; using UniversalEditor.ObjectModels.FileSystem; using UniversalEditor.UserInterface; using UniversalWidgetToolkit.Controls; +using UniversalWidgetToolkit.Layouts; +using UniversalWidgetToolkit; namespace UniversalEditor.UserInterface.Pages { @@ -39,6 +41,7 @@ namespace UniversalEditor.UserInterface.Pages public EditorPage() { + this.Layout = new BoxLayout (Orientation.Vertical); } /* @@ -146,7 +149,7 @@ namespace UniversalEditor.UserInterface.Pages // pnlLoading.Visible = false; // pnlLoading.Enabled = false; - Controls.Add(editor); + Controls.Add(editor, new BoxLayout.Constraints(true, true)); } else { @@ -160,15 +163,16 @@ namespace UniversalEditor.UserInterface.Pages editor.DocumentEdited += editor_DocumentEdited; TabPage tab = new TabPage(); + tab.Layout = new BoxLayout (Orientation.Vertical); tab.Text = editor.Title; - tab.Controls.Add(editor); + tab.Controls.Add(editor, new BoxLayout.Constraints(true, true)); tbs.TabPages.Add(tab); } // pnlLoading.Visible = false; // pnlLoading.Enabled = false; - Controls.Add(tbs); + Controls.Add(tbs, new BoxLayout.Constraints(true, true)); } } }