Using flexbox layout with angular-ui tabs

梦想的初衷 提交于 2019-12-25 02:32:27

问题


I wan't to use flexbox layout with angular ui tabs (ui.bootstrap.tabs). I have this plunker:

http://plnkr.co/edit/9ToL1WLwgDVT0DldMnaa

I changed the ui-template thus all div's get the flexbox classes. Still the tab content div is not filling up the fully available space.

Any idea?


回答1:


I have found a solution. Here is an updated plunker:

http://plnkr.co/edit/oswSGYApFj9sSohms0FS?p=preview

The key is to override the display property of the '.tab-content>.active' class. By default it is set to 'display: block'. It has to be set to 'display: flex'.



来源:https://stackoverflow.com/questions/24348472/using-flexbox-layout-with-angular-ui-tabs

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