1. #1
    Sencha User
    Join Date
    Jun 2010
    Posts
    27
    Vote Rating
    0
    solovieff13 is on a distinguished road

      0  

    Question Panel collapse icon

    Panel collapse icon


    Hi,

    I have two panels with anchor layout like this
    Code:
    {
                                                layout : 'anchor',
                                                id : 'doublePanel',
                                                region : 'west',
                                                defaults :
                                                {
                                                    anchor : '100%'
                                                },
                                                border : false,
                                                split : false,
                                                margins : '2 0 5 5',
                                                width : 335,
                                                items : [panel1, panel2],
    in panel2 i have:
    Code:
    {
    height: 150,
    collapsible: true
    }
    I want panel2 to collapse to the bottom, not to the top (so, I want panel1 to have all the space). As far as I know I can not to that directly, so, I do the following in panel2 listeners:

    Code:
    collapse: function()
                        {
                            panel1.setHeight(300);
                        },
                        expand: function()
                        {
                            Ext.getCmp('dealSummary').setHeight(450);
                        }
    to hide panel2 and make panel1 fill all the space.

    So, there are two questions:
    1) can i do that directly without setting the height to panel1?
    2) if no, how can I change the "collapse" icon, so that 'collapse' icon will be 'expand' one and vice versa.

  2. #2
    Sencha User
    Join Date
    Oct 2011
    Posts
    1
    Vote Rating
    0
    emmahudson88 is on a distinguished road

      0  

    Default


    Thank you so much for your post.

  3. #3
    Sencha User
    Join Date
    Jun 2010
    Posts
    27
    Vote Rating
    0
    solovieff13 is on a distinguished road

      0  

    Default


    It is called collapseDirection.

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar