Skip to content

Galleria: overlay z-index in fullscreen mode is not set reliable #13792

@kguelzau

Description

@kguelzau

Describe the bug

We are using a <p:galleria fullscreen=true> inside a <p:accordionPanel> and when triggering the Widget with PF('myWidgetVar').show() the z-index and the class "ui-widget-overlay" of the overlay are not set.

I don't know if this is the case in other usage scenarios, but I can say, that "onEntering" is not called (but "onEnter" is) in our case:
https://github.com/primefaces/primefaces/blob/15.X/primefaces/src/main/resources/META-INF/resources/primefaces/galleria/0-galleria.js#L134

We ended up with disabling the animations as a workaround:

PrimeFaces.widget.Galleria = PrimeFaces.widget.Galleria.extend({
    show: function (index) {
      // disable animation because "onEntering" is not called reliable
      let state = PrimeFaces.animationEnabled;
      PrimeFaces.animationEnabled = false;
      this._super(index);
      PrimeFaces.animationEnabled = state;
    }
  });

Reproducer

primefaces-test-13792-master.zip

Expected behavior

No response

PrimeFaces edition

Community

PrimeFaces version

15.0.3

Theme

No response

JSF implementation

Mojarra

JSF version

4.x

Java version

21

Browser(s)

No response

Metadata

Metadata

Assignees

Labels

🐞 defectBug...Something isn't working

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions