Context: I'm writing an ExtJS application to help volunteers manage a camp database. Containing emergency information, dietary requirements and cabin allocation. I want it to be user-friendly so that volunteers will pick it up quickly, so I decided the tabs need to be bigger to draw attention to the main actions of the application.
Problem: I just don't know how to change the tab height though.
Work so far:
- I've tried setting the tabBar property for my tab panel, but the tabs didn't resize and the styling just looked weird
- I looked through forums and people suggested modifying the CSS, but there were no examples
Can you help? This is what I want to acheive:
If you are using extjs4 do use the SASS and Compass to make any changes in the extjs stylesheet.
You can just add below variable in my-custom-theme.scss to change the height of the tab:
Using new ExtJS 4 theming with Compass you can just set:
in
appname/resources/sass/my-ext-theme.scss
.The only issue you will encounter is extra space below tab bar bug, which always appears when using custom theme. But this can be solved easily, as explained there, by setting in one of your CSS:
In
resources/themes/stylesheets/ext4/default/variables/_tabs.scss
file in ExtJS package, you can find other useful variables to customize tab size and color.I think I've found a solution!
Ensure you have set the 'cls' property of the Ext.tab.Panel you're using, then paste the following into your custom CSS file.
Note this makes the tabs bigger and middle-aligns the text, but ideally the icon would also be middle-aligned.