1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    2
    Vote Rating
    1
    robin2lyl is on a distinguished road

      1  

    Default Unanswered: Why my TabPanel like this ?

    Unanswered: Why my TabPanel like this ?


    TabPanel panel = new TabPanel();
    panel.setBorders(false);
    TabItem item1 = new TabItem("Hello World 1");
    item1.addText("Hello...");
    item1.addStyleName("pad-text");
    TabItem item2 = new TabItem("Hello World 2");
    item2.addText("... World!");
    item2.addStyleName("pad-text");
    panel.add(item1);
    panel.add(item2);
    The page like this:
    2012-7-10 13-23-16.png2012-7-10 13-23-54.png
    Why there has a line in the active TabPanel?

    but when i add panel.setPlain(true);
    the effect like this:
    2012-7-13 11-50-39.png

    Why?

  2. #2
    Sencha User
    Join Date
    Aug 2012
    Posts
    12
    Vote Rating
    0
    Martin Hobby Vavrous is on a distinguished road

      0  

    Default have the same problem

    have the same problem


    as mentioned --- I got four panels A, B, C and D ... Don't know why, but in front (on init) is panel B ... can someone help?

  3. #3
    Sencha User
    Join Date
    Aug 2012
    Posts
    12
    Vote Rating
    0
    Martin Hobby Vavrous is on a distinguished road

      0  

    Default SOLVED

    SOLVED


    Just try to give an ID to your TabPanel - in my example named "MyTabPanel", given ID "MyTabPanel"...

    got one window 4 panels in it, window without ID, tabpanel with ID "MyTabPanel"

    write to console

    Ext.getCmp('MyTabPanel').setActiveTab(0); //for first tab
    Ext.getCmp('MyTabPanel').setActiveTab(2); //for third tab etc.

    OR

    if you want to do it by default (i.e. whenever you open your project preview) just put into tabpanel options (in Designer - lower right side by default) "activeTab" to 0 (or any other number) ... more info is here
    Code:
    http://docs.sencha.com/ext-js/4-1/#!/api/Ext.tab.Panel-cfg-activeTab

  4. #4
    Sencha User
    Join Date
    Jul 2012
    Posts
    2
    Vote Rating
    1
    robin2lyl is on a distinguished road

      0  

    Default


    Thanks!
    but TabPanel has setSelection,not setActiveTab.

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