Results 1 to 2 of 2

Thread: Card Layout showing 2 items together

  1. #1
    Sencha User
    Join Date
    Aug 2012
    Vote Rating

    Default Card Layout showing 2 items together

    I have a Panel with 'Card' layout, there are 3 items in it and i want it to show any one item at a particular moment, in general it should show the first item, but I am facing a weird problem - initially it is showing first 2 items together, by inspecting the debugger I can find the active item to be the first one but in UI it's showing 1st and 2 nd item, so I ran a test in console - if i force to show the first item by Ext.getCmp('id').layout.setActiveItem(0) it still shows first 2 items, but if i use Ext.getCmp('id').layout.setActiveItem(1) or Ext.getCmp('id').layout.setActiveItem(2) I get expected result, and most interesting behavior is after executing Ext.getCmp('id').layout.setActiveItem(1) (or 2) if i try Ext.getCmp('id').layout.setActiveItem(0) I get the expected result i.e. only first item is visible!! Any possible explanation for this?

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL
    Vote Rating


    I have not seen this behavior at all. What Ext JS 3.x.x version are you using and maybe try a simple test outside of your application to see if maybe it's something with your app.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts