Ionic md-tabs squeezing tabs

末鹿安然 提交于 2019-12-24 07:29:10

问题


I have created this app with ionic and angular material design. My issue is when I use md-tabs with more than 4 tabs. It's squeezing when I switch between views and back to md-tabs... it's common on android, ios it's just usually.

<md-tabs md-stretch-tabs="auto" md-align-tabs="top" md-center-tabs="yes"
         md-dynamic-height="" md-border-bottom=""
         md-selected="data.selectedIndex">

Normal

With squeeze

Solution

md-tab-item.md-tab.md-ink-ripple {
    min-width: 111px;
}

回答1:


Have you tried setting a min-width css property for the generated tab elements?



来源:https://stackoverflow.com/questions/44436697/ionic-md-tabs-squeezing-tabs

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