角度材质和布局填充可以填充高达100%的屏幕,不再需要

时间:2015-11-25 13:25:06

标签: css angularjs less material-design angular-material

我正在调查Angular Material,但我不习惯使用AONA50 item = new AONA50(); JAXBContext context = JAXBContext.newInstance(item.getClass()); Unmarshaller unmarshaller = context.createUnmarshaller(); unmarshaller.setSchema(schema50); Object xmlObject = item.getClass().cast(unmarshaller.unmarshal(new File(fileName))); return (AONA50)xmlObject; 进行布局。我不想在屏幕右侧显示滚动条。但是,我希望在工具栏下方的每个flexbox的右侧都有一个滚动条。

HTML:

div

My Plunkr example

在我的Plunkr中,请注意有两个工具栏显示。我不希望外部工具栏显示。如果我在左内侧滚动条中向下滚动,除非我使用右外侧滚动向下滚动,否则我无法看到该元素的底部。

Another example of my issue

在我的Imgur示例中,我向下滚动文档,我可以看到所有内容,但我无法再看到工具栏了。出于某种原因,<body ng-controller="MainController as main" ng-cloak> <div ng-include="'menu.html'"></div> <div ng-include="'toolbar.html'"></div> <div ui-view layout="row" layout-fill></div> </body> 是添加到高度的金额。我可以通过将身高设置为95%来解决这个问题,但这不是一个很好的解决方案。

1 个答案:

答案 0 :(得分:0)

似乎在元素上设置position: fixed; right: 0;就解决了这个问题。

相关问题