1. #1
    Ext User
    Join Date
    Oct 2007
    Posts
    17
    Vote Rating
    0
    jweiss is on a distinguished road

      0  

    Default How to stop sliding of collapsed panel

    How to stop sliding of collapsed panel


    Cheers,


    I have a complex slit region setup and one of the panel is collapsable. Everything works nice but I don't like the slideIn effect if I click on the bar of the collapsed panel. Instead of sliding in (and out on a mouseout of the panel) I would rather have it behave like the expand button.

    Is there a way to disable the sliding or making it behave like the expand button?

    I could not find something in the panel docs.

    Thanks!

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Posts
    7,854
    Vote Rating
    4
    tryanDLS is on a distinguished road

      0  

    Default


    Try animCollapse:false on your panels.

  3. #3
    Ext User
    Join Date
    Oct 2007
    Posts
    17
    Vote Rating
    0
    jweiss is on a distinguished road

      0  

    Default


    I already have animCollapse: false:

    Code:
                    region: 'west',
                    id: 'ext_layout_west', // Ext component ID
                    split: true,
                    width: 200,
                    minSize: 200,
                    maxSize: 300,
                    collapsible: true,
                    animCollapse: false,
                    layout: 'border',
                    margins:'0 0 0 10',
                    items: [....]
    With animCollapse: false I do not get the expand/collapse animation, but I still can slide the region in by clicking on the big button-area when the region is collapsed.

  4. #4
    Ext User
    Join Date
    Oct 2007
    Posts
    17
    Vote Rating
    0
    jweiss is on a distinguished road

      0  

    Default


    push

  5. #5
    Ext User
    Join Date
    Oct 2007
    Posts
    17
    Vote Rating
    0
    jweiss is on a distinguished road

      0  

    Default


    Anybody?

    I've started looking into the code but couldn't find a hint...

  6. #6
    Ext User
    Join Date
    Jan 2008
    Posts
    4
    Vote Rating
    0
    artoxian is on a distinguished road

      0  

    Default


    Did you end up finding a solution???

    I need to disable the 'big slide button' as well, and just make it act like the small top button (i.e. just lock in or out the area)

  7. #7
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    94
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    Quote Originally Posted by jweiss View Post
    Anybody?
    Use animFloat:false

    Quote Originally Posted by artoxian View Post
    I need to disable the 'big slide button' as well, and just make it act like the small top button (i.e. just lock in or out the area)
    If you don't want a floating panel you can disable it with floatable:false.
    But clicking the 'big slide button' won't do anything then (unless you set collapseMode:'mini').

  8. #8
    Ext User
    Join Date
    Jan 2008
    Posts
    4
    Vote Rating
    0
    artoxian is on a distinguished road

      0  

    Default


    excellent, thanks mate. I knew it would be a parameter

  9. #9
    Ext User ofir's Avatar
    Join Date
    Jan 2008
    Posts
    8
    Vote Rating
    1
    ofir is on a distinguished road

      0  

    Default


    Where's collapseMode defined?, I've looked it up in the docs and couldn't find it.

  10. #10
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    94
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    It's defined here.