1. #1
    Sencha User
    Join Date
    Dec 2008
    Location
    France
    Posts
    241
    Vote Rating
    0
    senacle is on a distinguished road

      0  

    Default Tab height

    Tab height


    Hello !

    In every sample with a tabpanel, the height of the tab is 21px and the title of each tab are bold.

    In Extjs3, the height is a little more (i can't find the exact size in the Ext3 examples, even with firebug) and the title are bold only if the tab is selected.

    Is it a bug ?
    If not, wich property must i use to change the height ant the title style ?

  2. #2
    Sencha Premium Member
    Join Date
    Apr 2011
    Posts
    101
    Vote Rating
    3
    sskow200 is on a distinguished road

      0  

    Lightbulb Fixing tab height

    Fixing tab height


    If you change the tab height in Ext4. The TabBar does not automatically adjust its size accordingly. Therefore, the tab becomes hidden due to overflow problems. When defining a new Ext.tab.Panel you can override the configuration options for the tabBar that will be created. Here was my solution:

    Code:
    Ext.define('My.app.Tabs', {
        extend: 'Ext.tab.Panel',
        tabBar: {
                defaults: {
                    height: 50 //sets the default height of the actual tab
                },
                height: 65,  //sets the height of the tabBar component
                listeners: {
                    afterrender: function(cmp){
                     // this will set the height of the tabBar body to the height of the tabBar component
                        cmp.body.setHeight(cmp.getHeight()); 
                    }
        }
    });
    The reason I manually set the height of the components body was because it seems that in Ext4 the configuration for bodyStyle: in a component was removed. This used to be a very handy config option so hopefully it will be put back in. Of course, it may still exist in some other form, but I have no been able to find it. Hope this helps.

  3. #3
    Sencha User
    Join Date
    Apr 2010
    Posts
    78
    Vote Rating
    1
    kskrumpet is on a distinguished road

      0  

    Default Yes, it's 21px

    Yes, it's 21px


    Tab styles are controlled in css. The above method is a good solution for the height.

    As for the weight, you can change this yourself quite easily - just create your own style. Probably the easiest way for a site wide change would be:

    Code:
    .x-tab button {
      font-weight: normal;
    }
    .x-tab-active button {
      font-weight: bold;
    }
    The first switches off the "all tabs are bold", the second switches on the "active tabs are bold".

    (make sure you load this after ext-all.css so that it overrides what's in there)

    Rich
    http://wintermedia.co.uk/extjs-consultancy

  4. #4
    Ext JS Premium Member anselmtmcclain's Avatar
    Join Date
    Mar 2008
    Location
    Northern California
    Posts
    76
    Vote Rating
    1
    anselmtmcclain is on a distinguished road

      0  

    Default


    The new 'shorter' default tab height is nice in 4.0, but it has one drawback in that it seems to clip 16x16 pixel icons... Was there a decision to standardize on 12px (?) icons for iconCls images?

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..."