如果sap.ui.core.ComponentContainer高度为100%,则滚动条总是出现在笔记本大小的屏幕上,如果95%,则显示更小的滚动条。如果设置在95%以下,页面结尾看起来就不合适了。自动尺码不能用。
如何摆脱滚动条?
在index.html中
// On core init:
new sap.ui.core.ComponentContainer({
height: "95%",
name: "MyApp",
}).placeAt("content");在App.view.xml中
<mvc:View xmlns:mvc="sap.ui.core.mvc"
xmlns="sap.m"
xmlns:f="sap.f"
height="100%"
displayBlock="true">
<f:ShellBar title="MyApp">
</f:ShellBar>
<Shell>
<App id="app">
</App>
</Shell>
</mvc:View>我的意图是创建我自己版本的启动板容器,以承载其他应用程序。
UI5版本:最新的稳定SAPUI5版本
发布于 2021-07-22 06:01:22
您可能需要在示例弹性柱形壳杆或带有Split应用程序的Shell栏中尝试这些方法。
当页面中有同级控件时,sap.m.Shell似乎打得不好。它通常用作页面中的顶部容器。
https://stackoverflow.com/questions/68404654
复制相似问题