Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PrimeFaces overlayPanel outside its container

Tags:

jsf

primefaces

I'm trying to display an OverlayPanel into a Carousel, but this panel is wider than the Carousel, so its contents are not completely shown.

I've tried adding a z-index style value to the panel, but it still stays "inside" the Carousel.

Is there any way to show it completely, by drawing its overflow outside the Carousel?

like image 348
StepTNT Avatar asked Oct 08 '22 22:10

StepTNT


1 Answers

According to the documentation from primefaces OverLayPanel Documentation www.primefaces.org/docs/vdl/3.4/primefaces-p/overlayPanel.html you should use

appendToBody="true"

The overlay panel with it should do the trick.

like image 81
Jonathas Pacífico Avatar answered Oct 13 '22 10:10

Jonathas Pacífico