HtmlEditor with label in fieldset layout bug

  1. #1

    HtmlEditor with label in fieldset layout bug

    When I use htmleditor with label in fieldset it's height settings don't apply and content area is shrinked.

    Code to reproduce:
    <!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>HtmlEditor with label in fieldset layout bug</title>
    </head>
    <body>
        <ext:ResourceManager runat="server" /> 
        <ext:formpanel runat="server" Width="630" >
            <items>
                 <ext:fieldset runat="server">
                    <items>
                        <ext:HtmlEditor runat="server" HideLabel="true" Height="110" 
    Text="No label - I'm OK." />
                        <ext:HtmlEditor runat="server" HideLabel="false" fieldlabel="Broken" Height="110" 
    Text="With label - Broken height and width of content area" />
                    </items>
                 </ext:fieldset>
            </items>
        </ext:formpanel>
    </body>
    </html>
  2. #2

    Update

    When I add layout="Form" to fieldset like this
    ext:fieldset runat="server" layout="Form"
    It looks OK.

    Is there more information about this, why layout form must be specified?

    Thanks
  3. #3
    Hi,

    Yes, you will have more consistent result when use FieldLabel in the FormLayout context.

    Generally, ExtJS uses FieldLabel in the FormLayout context only, when there is no FormLayout - FieldLabel is just not used.

    The special plugin FieldLaberer is used in Ext.Net to render FieldLabel when it's out of FormLayout context. But it doesn't work very well in some cases.

    I'd suggest you to always use FieldLabel in FormLayout context only.

Similar Threads

  1. [CLOSED] [1.3] Fieldset layout
    By softmachine2011 in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Mar 07, 2012, 2:36 PM
  2. [CLOSED] Label inside FieldSet focussing incorrect input
    By ljcorreia in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 22, 2011, 3:00 PM
  3. [CLOSED] Fieldset: label issue
    By RomualdAwessou in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Oct 20, 2010, 7:44 PM
  4. [CLOSED] Layout problem with fieldset
    By skyone in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jul 23, 2010, 2:31 PM
  5. Replies: 5
    Last Post: Mar 08, 2010, 11:26 AM

Posting Permissions