How to make bigger icons in bottom tab bar in sencha?

一曲冷凌霜 提交于 2019-12-25 01:43:02

问题


In my application, i added a bottom tab bar with home icon and feedback icon using iconCls. But as i am developing for android tablet, it is coming very small. How can i make those icon big? and how to align properly?? means one icon in left, another in middle and another in right..

Thanks in advance..


回答1:


Try to change the 1.65em value into something bigger. But keep the same value everywhere.

.x-tabbar .x-tab .x-button-icon {
  -webkit-mask-size: 1.65em;
  width: 1.65em;
  height: 1.65em;
}

Hope this helps




回答2:


For alignment, use iconAlign

For size adjustment, see Size of tab in sencha




回答3:


This way i am able to increase the icon size:

.x-tabbar.x-docked-bottom .x-tab .x-button-icon { -webkit-mask-size: 2.5em; width: 2.5em; height: 2.5em; margin: 0 auto; position: relative; background-color:#D7E4BD; }


来源:https://stackoverflow.com/questions/11366845/how-to-make-bigger-icons-in-bottom-tab-bar-in-sencha

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!