【问题标题】:Is there a way to disable default scrollbar for rich:popupPanel有没有办法禁用丰富的默认滚动条:popupPanel
【发布时间】:2015-11-21 13:23:50
【问题描述】:

我使用<rich:popupPanel>标签,丰富:弹出面板在数据很大时提供默认滚动条,我使用我的自定义滚动条而不是这个。 有没有办法隐藏<rich:popupPanel>标签提供的默认滚动条。

<rich:popupPanel id="termEditPanel"
                 followByScroll="true"
                 autosized="true"
                 modal="true"
                 resizeable="false"
                 moveable="false"
                 styleClass="popup term-editor-panel"
                 rendered="#{agreements.agreement.editable}" 
                 zindex="1000">

【问题讨论】:

标签: jsf jsf-2 richfaces jsf-2.2


【解决方案1】:

您可以将下一个样式添加到页面以覆盖原生 Richfaces 弹出样式

<h:outputStylesheet>
        .rf-pp-cnt-scrlr {
            overflow: hidden !important;
        }
</h:outputStylesheet>

或使用样式

<rich:popupPanel id="category"
                     modal="true"
                     resizeable="false"
                     autosized="false"
                     width="300"
                     height="300"
                     styleClass="popUpMain"
                     style="overflow:hidden !important;"
                     domElementAttachment="form"
                     onmaskclick="#{rich:component('category')}.hide()">

【讨论】:

    猜你喜欢
    • 2013-04-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-06-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多