1. #1
    Sencha User
    Join Date
    Aug 2012
    Posts
    5
    Vote Rating
    0
    diptarag is on a distinguished road

      0  

    Default Card Layout showing 2 items together

    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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,754
    Vote Rating
    828
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    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 @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi