[英]<p:commandButton> not getting scrolled along with the <p:scrollPanel>
I have a <h:inputText><p:commandButton>
arranged one after the other inside a <p:scrollPanel>
. 我有一个
<h:inputText><p:commandButton>
在<p:scrollPanel>
一个接一个地排列。
The contents inside the scroll pane are dynamic hence the contents gets added or removed based on certain condition and a scroll bar is added dynamically.If the contents exceeds the size of the scroll pane scrollbar gets added. 滚动窗格中的内容是动态的,因此会根据特定条件添加或删除内容,并动态添加滚动条。如果内容超过滚动窗格的大小,则会添加滚动条。
The problem is when I scroll the scroll bar the <h:inputText>
gets scrolled along with the scrollbar but the is not getting scrolled along with which means the stays static and its not scrolling up and down. 问题是,当我滚动滚动条时,
<h:inputText>
随滚动条一起滚动,但<h:inputText>
却未随之滚动,这意味着保持静态并且不会上下滚动。
Here is my code 这是我的代码
<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">
I have attached the screenshot of my expectation which is given below : 我已附上我期望的屏幕截图,如下所示:
It seems to be a kind of browser issue, the same works fine in mozilla firefox, I am using IE 8 where the issue is found. 这似乎是一种浏览器问题,在mozilla firefox中也可以正常工作,我正在使用IE 8查找问题。 How to resolve the issue.
如何解决问题。
我将<p:commandButton>
替换为<h:commandButton>
按钮,并使其滚动。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.