I open a window which loads a Page that holds an HtmlEditor (build from codebehind).
What is best approach to make the editor autosize to the window?


        private void Render_EditMode() 
        {
            
            this.Controls.Add(new Ext.Net.ResourceManager() { ID = "AdoreResourceManager" });

            Ext.Net.HtmlEditor htmlEditor = new Ext.Net.HtmlEditor();
            htmlEditor.Text = CurrentContent();
            htmlEditor.ID = "AdoreHtmlEditor";
            htmlEditor.IDMode = IDMode.Static;
           // htmlEditor.Width = 621;
           // htmlEditor.Height = 460;
            
            this.Controls.Add(htmlEditor);
            

        }
I have tried to add a fitlayout first and added the htmlEditor in this one, but without success.

Any thoughts


CLOSED

Viewport -> Fitlayout -> HtmlEditor