p:selectOneMenu dropdown not attached to the component inside a dialog [duplicate]

血红的双手。 提交于 2019-12-01 18:56:56

问题


I have a p:selectOneMenu inside a p:dialog. Whenever I scroll the page, the dropdown detaches from the p:selectOneMenu label and moves according to the mouse scroll. Is there any way to attach it to the label so that it doesn't move?

Here's a screenshot of the problem posted by someone who has the same problem SelectOneMenu panel scrolls with the mouse wheel


回答1:


In case someone finds this question, I want to add here that this problem can be found in newer versions of Primefaces (5.0+) and you can solve it by using appendTo="@this" in the p:selectOneMenu. I just found it and solved it in another more recent question.

Related:

SelectOneMenu scrolls with the mouse wheel



来源:https://stackoverflow.com/questions/15286454/pselectonemenu-dropdown-not-attached-to-the-component-inside-a-dialog

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!