【问题标题】:<p:commandButton> not getting scrolled along with the <p:scrollPanel><p:commandButton> 没有与 <p:scrollPanel> 一起滚动
【发布时间】:2014-02-10 20:49:37
【问题描述】:

我有一个&lt;h:inputText&gt;&lt;p:commandButton&gt;&lt;p:scrollPanel&gt;中一个接一个地排列。
滚动窗格内的内容是动态的,因此根据特定条件添加或删除内容,并动态添加滚动条。如果内容超过滚动窗格的大小,则添加滚动条。
问题是当我滚动滚动条时,&lt;h:inputText&gt; 与滚动条一起滚动,但没有滚动,这意味着它保持静态并且不会上下滚动。

这是我的代码

<h:inputText style="width:41%" value="#{xx.selectedid"/>
<p:commandButton value="WebPhone" id="pwebpne" style="margin-left:1em;width: auto; height: 20px;font-size:85%;valign:top" actionListener="#{xx.PhoneSearch}"    oncomplete="window.open('#{xx.pUrl}', '_blank')"
rendered="#{xx.editflg == true"} async="false">


我附上了我的期望截图,如下所示:

这似乎是一种浏览器问题,在 mozilla firefox 中也可以正常工作,我正在使用 IE 8 发现问题。 如何解决问题。

【问题讨论】:

    标签: javascript jquery html css jsf


    【解决方案1】:

    我将&lt;p:commandButton&gt; 替换为&lt;h:commandButton&gt; 按钮并且它正在滚动。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-11-05
    • 2010-11-11
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多