[CLOSED] panel autoheight

  1. #1

    [CLOSED] panel autoheight

    I am trying to do the following. I have a viewport with Borderlayout. In North Section I have Panel which I want the Panel to expand height based on weather the wc_Expander with ID "expand1" is shown. I have JS script which when click on the div will show/hide the additional text. I added

    Ext.getCmp("pnlTop").syncSize(); in the pnlBottom, I have a grid that is inserted via code behind. I have enclosed screenshot. any suggestions.
    thanks
    idriss

    <ext:ViewPort ID="ViewPort1" runat="server">
        <Body>
            <ext:BorderLayout ID="BorderLayout1" runat="server">
                <North MarginsSummary="5 5 5 5">
                    <ext:Panel ID="pnlTop" runat="server" Header="false" Frame="false" AutoHeight="true"
                    BodyStyle="padding: 5px;background-color:#ffffff;" >
                        <Body>
                            <div >
                                <div style="float: left; width: 49%;">
                                <label class="tdText">
                                <input type="checkbox" id="cbComplete" &#111;nclick="changeIcon(this, &#100;ocument.getElementById('hfSection').value)" />Mark
                                this section as complete and accurate</label>
                                
    
                                
    
                                <br />
                                <div style="width: 100%;">
                                <!-- BEGIN EXPAND -->
                                <wc:wc_Expander runat="server" ID="expand1" MessageHeader="Additional Information"
                                MessageBody="lots of text here. lots of text here lots of text herelots of text herelots of text here
                                lots of text here lots of text here lots of text here lots of text here lots of text here lots of text here
                                lots of text here lots of text here lots of text here lots of text here lots of text here lots of text here lots of text here" />
                                <!-- END EXPAND -->
                            
    
                        </Body>
                        <Listeners>
                            <BodyResize Handler="#{pnlTop}.el.repaint();" />
                            <Resize Handler="var newHeight=pnlTop.lastSize.height; if (newHeight == undefined) {newHeight=125};pnlTop.setHeight(newHeight);el.autoHeight = true; " Delay="50" Scope="this" />
                        </Listeners>
                    </ext:Panel>
                </North>
                <Center MarginsSummary="0 5 5 5">
                    <ext:Panel ID="pnlBottom" runat="server" Frame="true" Header="false">
                        <Body>
                        </Body>
                    </ext:Panel>
                </Center>
            </ext:BorderLayout>
        </Body>
    </ext:ViewPort>
  2. #2

    RE: [CLOSED] panel autoheight

    please mark as solved. I set syncsize on viewport and it worked.
    idriss

Similar Threads

  1. [CLOSED] How to set Panel width like AutoHeight ?
    By gs_user in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 27, 2012, 10:27 AM
  2. [CLOSED] [1.0] AutoHeight Panel
    By FVNoel in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 09, 2011, 3:32 PM
  3. [CLOSED] [1.0] Panel AutoHeight Issue
    By pasion in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 28, 2010, 5:11 AM
  4. [1.0] Panel autoheight
    By SouthDeveloper in forum 1.x Help
    Replies: 2
    Last Post: Feb 12, 2010, 6:30 PM
  5. [CLOSED] Panel.AutoHeight issue
    By randy85253 in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 31, 2009, 10:55 AM

Posting Permissions