1. #1
    Ext User
    Join Date
    Jun 2008
    Posts
    18
    Vote Rating
    0
    marswe is on a distinguished road

      0  

    Default Different TabItem behaviour!?

    Different TabItem behaviour!?


    I have a TabPanel created in a View which I store in the Registry:
    Code:
    
    
    protectedvoid initUI() { viewport = new Viewport(); viewport.setLayout(new CenterLayout()); ContentPanel panel = new ContentPanel(); panel.setBodyBorder(false); panel.setHeaderVisible(false); panel.setSize(600,600); panel.setScrollMode(Scroll.AUTO); tab = new TabPanel(); tab.setBodyBorder(false); Registry.register("tabPanel", tab); panel.add(tab); viewport.add(panel); RootPanel.get().add(viewport);
    }
    When I later on in another view loads the TabPanel and adds a tabItem I do like this:
    Code:
    
    
    TabPanel tab = (TabPanel) Registry.get(
    "tabPanel"); searchTab = new TabItem(constants.searchTabCaption()); searchTab.setClosable(false); searchTab.add(panel);
    tab.add(searchTab);
    When I then start my application none tab is selected so unless I click on the tab I don't the tab content and then it looks ok. But if I instead add the line
    Code:
    
    tab.setSelection(searchTab);
    
    the tab is indeed selected but the layout does not look good, i.e. the table heading on a table in the tabitem together with two buttons does not look good.

    What could be the problem?

    /Markus

  2. #2
    Sencha - GXT Dev Team darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,242
    Vote Rating
    2
    darrellmeyer is on a distinguished road

      0  

    Default


    If you post you sample code in this format I will take a look.

  3. #3
    Ext User
    Join Date
    Jun 2008
    Posts
    18
    Vote Rating
    0
    marswe is on a distinguished road

      0  

    Default


    Ok, I tried a different approach and instead of putting the tabpanel itself in the registry I created a tabitem, added it to the tabpanel and put that into the registry. Then it worked!

Thread Participants: 1

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