[CLOSED] HtmlEditor inner textarea with FieldLabel is not rendering 100% width

  1. #1

    [CLOSED] HtmlEditor inner textarea with FieldLabel is not rendering 100% width

    Hello,

    In my layout bellow, when I add FieldLabe to my htmleditor, the inner textarea is not rendering with full width.

    Bellow source code.

    Thanks

    <%@ Page Language="C#" %>
    
    <%@ Import Namespace="System.Collections.Generic" %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Items Actions - Ext.NET Examples</title>
        <link href="../../../../resources/css/examples.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <form runat="server">
        <ext:ResourceManager runat="server" />
       <ext:Panel runat="server">
           <Items>
               <ext:Container Layout="FitLayout" runat="server">
                   <Content>
                       <ext:HtmlEditor FieldLabel="hello" runat="server" />
                   </Content>
               </ext:Container>
           </Items>
       </ext:Panel>
        </form>
    </body>
    </html>
    Last edited by Daniil; Mar 28, 2012 at 12:08 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Not sure what exactly you mean, but I can suggest the following:

    Example
    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Ext.NET Example</title>
    </head>
    <body>
        <ext:ResourceManager runat="server" />
        <ext:Panel runat="server">
            <Items>
                <ext:Container 
                    runat="server" 
                    Layout="FormLayout" 
                    LabelAlign="Top">
                    <Items>
                        <ext:HtmlEditor 
                            runat="server" 
                            Anchor="100% 100%" 
                            FieldLabel="FieldLabel">
                            <%--Fix for IE9 to remove scrollbars--%>
                            <Listeners>
                                <Initialize Handler="Ext.DomHelper.applyStyles(this.getEditorBody(), {'background-position' : 'top right', 'margin':'0px', padding:'0px'});" />    
                            </Listeners>
                        </ext:HtmlEditor>
                    </Items>
                </ext:Container>
            </Items>
        </ext:Panel>
    </body>
    </html>
  3. #3
    Fixed my problemo!

    You did it again :D

    Please, mark as closed

Similar Threads

  1. issues with FieldLabel width
    By norphos in forum 1.x Help
    Replies: 1
    Last Post: May 13, 2011, 9:32 AM
  2. [CLOSED] TextArea FieldLabel problem
    By ogokgol in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Feb 08, 2011, 9:20 AM
  3. [1.0] HtmlEditor and fieldlabel
    By SouthDeveloper in forum 1.x Help
    Replies: 2
    Last Post: May 10, 2010, 1:32 PM
  4. [CLOSED] FieldLabel width
    By methode in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 14, 2009, 9:27 AM
  5. [CLOSED] Form FieldLabel width
    By iwen in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Jan 22, 2009, 12:53 PM

Posting Permissions