p:selectOneMenu dropdown part scrolls and does not stay in position

后端 未结 3 1551
长情又很酷
长情又很酷 2020-12-02 00:24

I am using PrimeFaces 5.0.5 with GlassFish server 3.1.2.2.

I added a selectonemenu inside a which is then included in another XHTML

3条回答
  •  温柔的废话
    2020-12-02 00:29

    I had a very similar problem, and the selecOneMenu element was placed in a dialog window in a table cell, and the dropdown was moving along with the parent while scroling. Both solutions appendTo="@this" and panelStyle="position:fixed;" works fine, however having p:selectOneMenu element as a part of a datatable makes the dropdown hidden "under" the element it is in. The panelStyle="position:fixed;" fixed completely the problem, as it remains at that position regardless of scrolling on the top of the element it is in.

提交回复
热议问题