如何在 SAPUI5 中的剩余页面空间上拉伸 sap.m.ScrollContainer? [英] How to Stretch sap.m.ScrollContainer Over The Remaining Page Space in SAPUI5?

查看:53
本文介绍了如何在 SAPUI5 中的剩余页面空间上拉伸 sap.m.ScrollContainer?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个禁用滚动的页面.页面在其内容中包含两个 sap.m.Table.为了固定标题,一张桌子.它只包含列.sap.m.ScrollContainer 内容中的其他表.它包含项目.用例是项目不适合屏幕的高度.如果没有滚动容器,项目将落在屏幕底部.页面滚动仍然被禁用.现在我希望滚动容器跳入.它应该完全填充页面中第一个表格和页面末尾之间的剩余页面空间.直到页面底部.浏览器窗口的结尾.是否有任何解决方法可以实现 sap.m.ScrollContainer 自动越过剩余空间?没有将滚动容器设置为特定高度.

have a page with disabled scrolling. page contains in it's content two sap.m.Table. one table for the sake of a fixed header. it contains just columns. other table inside a sap.m.ScrollContainer's content. it contains the items. use case is that the items do not fit the screen's height. without a scroll container the items would fall over the screen's bottom. page scrolling is still disabled. now i'd like that the scroll container jumps in. and it should exactly fill out the remaining page space between the first table in the page and the end of the page. until the bottom of the page. the end of the browser window. is there any work around to achieve that the sap.m.ScrollContainer goes automatically over the remaining space? without a scroll container's set to a specific height.

推荐答案

变通方法:用 sap.ui.layout.FixFlex 包裹网站内容:为 设置一个像素值sap.ui.layout.FixFlex 属性 minFlexSize.sap.m.ScrollContainersap.m.Table 进入 sap.ui.layout.FixFlex 聚合 flexContent.现在 sap.m.ScrollContainer 的父级有一个固定的高度.因此 sap.m.ScrollContainer 可以基于此调整自身大小.

work around: wrap the site's content with a sap.ui.layout.FixFlex: set a pixel value to the sap.ui.layout.FixFlex property minFlexSize. the sap.m.ScrollContainer with the sap.m.Table goes into the sap.ui.layout.FixFlex aggregation flexContent. now the parent of the sap.m.ScrollContainer has a fixed height. therefore the sap.m.ScrollContainer can resize itself based on this.

这篇关于如何在 SAPUI5 中的剩余页面空间上拉伸 sap.m.ScrollContainer?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆