在sap.f.semantic.SemanticPage中禁用scroolbar

问题描述 投票:0回答:1

我想在语义页面(master)中禁用滚动条,并仅在semantic:content中向列表添加滚动,因此我的objectif在语义页面的标题中没有滚动。

enenableScrolling="false"不存在于sap.f.semantic.semantic页面

sapui5 scrollbar semantic-ui sap-fiori
1个回答
0
投票

检查API没有用于禁用scrollbar的参数。我会尝试这样的事情:

  • 限制内容:如果<content>没有超过整个高度,则不会看到滚动条(尝试sap.ui.table.TablevisibleRowCount
  • scroll:将滚动容器(ScrollContainer)添加到内容中

滚动示例:

<semantic:SemanticPage
    class="noScroll"
    id="mySemanticPage"
    headerPinnable="false"
    toggleHeaderOnTitleClick="false"
    preserveHeaderStateOnScroll="true"
    showFooter="{/showFooter}">

    <!-- Content -->
    <semantic:content>
        <ScrollContainer
                class="myContainer"
                height="100%"
                width="100%"
                horizontal="true"
                vertical="true"
                focusable="true">

CSS:

.noScroll .sapFDynamicPageContent {
    padding: 0;
    height: 100%;
}

.noScroll .sapFDynamicPageContent > div {
    padding: 0;
    height: 100%;
}
© www.soinside.com 2019 - 2024. All rights reserved.