Threaded View

  1. #1
    Sencha User
    Join Date
    Jun 2012
    Location
    Virginia, USA
    Posts
    40
    Vote Rating
    1
    rtirbany is on a distinguished road

      0  

    Default Answered: Issue with panel with accordion layout displaying a scrollbar

    Answered: Issue with panel with accordion layout displaying a scrollbar


    hi,
    I've a parent panel with an accordion layout, confined to a (vertically) restricted area of my viewport.
    This parent panel is dynamically populated to contain multiple child panels based off data in a store (using a dataview to generate div/html based).
    I have the parent's accordion behavior/rendering working fine. My issue is that since I can have many child panels, I am in need of a vertical scrollbar in the parent to be able to display/scroll them (remember, parent is in a vertically restricted area) since often my list of collapsed panel headers requires more space than what's used by the parent.

    Is there a way to have this work?

    I've tried pnl.setOverflowXY, overflowX, autoScroll (just to test - I don't want horizontal scrollbars at all) doLayout, etc to the parent (before as well as after adding each child item, etc)...to no avail. (I have seen this all work with non-dynamically added panels I believe)

    Any thoughts/ideas on how to have an accordion with a scrollbar in the parent?
    thanks in advance!


    thanks

  2. Does this looks right?