Panel Height Bug

  1. #1

    Panel Height Bug

    I have this structure mounted
    <ext:Panel runat="server" Title="<%$ AppRecursos : sm_txt_presencia %>" AutoHeight="true" Layout="Fit">
                <Items>
                    <ext:Panel runat="server" Layout="HBox" Border="false" LabelSeparator=":" LabelAlign="Top"
                        LabelWidth="110" Height="45">
                        <Defaults>
                            <ext:Parameter Name="margins" Value="0 0 0 5" Mode="Value" />
                        </Defaults>
                        <Items>
                            <ext:TextField runat="server" FieldLabel="<%$ AppRecursos : sm_txt_flexMinima %>"
                                Text="00:00" Regex="^(([0-1]?[0-9])|([2][0-3])):([0-5]?[0-9])$" RegexText="hh:mm">
                            </ext:TextField>
                            <ext:TextField runat="server" FieldLabel="<%$ AppRecursos : sm_txt_flexMaxima %>"
                                Text="00:00" Regex="^(([0-1]?[0-9])|([2][0-3])):([0-5]?[0-9])$" RegexText="hh:mm">
                            </ext:TextField>
                        </Items>
                    </ext:Panel>
                    
                    <ext:Panel runat="server" Height="102" Layout="Form"><Items>
                           <ext:TextArea runat="server" Text="Sample"></ext:TextArea>
                    </Items></ext:Panel>
                </Items>
            </ext:Panel>
    But the html renderer puts height=147 in the first panel and 102 to the second one.
    I think that two height are combined to simulate the layout Fit of the principal container Panel.

    The question is that my first child panel, renders with a height greather than specified.
  2. #2
    Hi,

    You can remove both the AutoHeight="true" and Layout="Fit" properties. Neither are required for your configuration.

    The Layout="Fit" is only applied if one Component is inside the <Items> collection.

    If you set the Height of the two inner Components, then AutoHeight="true" is not required.

    Hope this helps.
    Geoffrey McGill
    Founder
  3. #3
    Ok thanks!

Similar Threads

  1. Panel height into Div
    By Steve88 in forum 1.x Help
    Replies: 2
    Last Post: Mar 02, 2012, 2:32 PM
  2. How to set Panel height in percentage
    By Mr.Techno in forum 1.x Help
    Replies: 0
    Last Post: Feb 06, 2012, 11:44 AM
  3. How to set auto height for a panel?
    By ganesh.tony in forum 1.x Help
    Replies: 0
    Last Post: Jul 01, 2011, 5:26 AM
  4. Panel height
    By xMAC in forum 1.x Help
    Replies: 8
    Last Post: Jan 10, 2011, 10:32 AM
  5. Replies: 8
    Last Post: Apr 01, 2010, 6:25 PM

Tags for this Thread

Posting Permissions