extjs4.1fieldset

filedset collapse issue in ExtJS


I Use ExtJS 4.1 and use fieldset, collapsible: true, but initialy it must be collpsed, so i set collapsed: true, but the fieldset is not rendered, and it trows error in consol` Cannot call method 'getFrameInfo' of undefined, enter image description here

can please someone tell me the reason of issue, and the solution?


Solution

  • I had exactly the same problem. The problem has something to do with the layout of your parent. Just set the layout parameter

    align: 'stretch'
    

    of your parent and it will work just fine.

    Here is a working example.