PrimeFaces 11 - p:dialog fixed position not working

UI Components for JSF
Post Reply
afd0174
Posts: 16
Joined: 23 Aug 2014, 19:47

07 Jan 2022, 17:50

Hi,

I've encountered an issue upgrading to PrimeFaces 11 with the p:dialog component. When I specify a value for the position attribute, the dialog scrolls with the rest of page rather than holding its position fixed within the viewport. I'm creating the dialog with the following attributes:

Code: Select all

<p:dialog visible="true" focus="search-form:hidden-fix-for-focus" 
                  closable="false" fitViewport="true"
                  modal="false" header="Search Parameters" 
                  height="600" width="300"
                  positionType="fixed"  
                  position="0, 350" minimizable="true" >
As a note, I observe the same "non-fixed" behavior whether or not I provide the positionType="fixed" attribute (where the default behavior for positionType is "fixed" anyway). I believe this issue can be recreated by setting a dialog's position attribute to an initial value, so modifying the basic dialog with a position attribute in the showcase here would suffice:

https://www.primefaces.org/showcase/ui/ ... fwid=d00bc

In either PrimeFaces 8.0 and PrimeFaces 10.0, this issue does not present itself and the dialog remains fixed within the view as the rest of the page scrolls. As a possibly related issue, in PrimeFaces 11, I can drag the dialog anywhere on the page, but on scrolling the view, the dialog moves back to its originally specified position (e.g. "0,350"). This is undesirable and also does not happen in either PrimeFaces 8 or 10, where the dialog holds its new dragged, fixed position while the page is scrolled.

I am running WildFly 23 with Mojarra JSF implementation jsf-impl-2.3.14.SP04.jar and Java 11.0.6+10-LTS and testing with Firefox 95.0.2 64-bit. Please let me know if I can provide any additional details.

Thank you,

-Andy

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

08 Jan 2022, 23:02

I would open a GitHub ticket with a reproducer.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

afd0174
Posts: 16
Joined: 23 Aug 2014, 19:47

09 Jan 2022, 23:28

Thanks - I've posted an issue with a reproducer test project here:

https://github.com/primefaces/primefaces/issues/8261

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 33 guests