LightBox blocks UI when position:fixed ?!

UI Components for JSF
Post Reply
Emerald
Posts: 15
Joined: 23 Jun 2012, 00:28

06 Jul 2012, 04:24

I added the following code to my style.css to fix the issues described here: viewtopic.php?f=3&t=22919

Code: Select all

.ui-lightbox-content{
	background-color: white;
	width: 500px;
	height: 500px;
	position:fixed;
	top:50%;
	left:50%;
	margin-top:-250px;
	margin-left:-250px;
	
}

.ui-widget-overlay{
	width:100% !Important;
	height:100% !Important;
}
When position of .ui-lightbox-content is fixed or absolute, you can not leave the lightbox by clicking outside the content as usual. When position is set to static or relative, you can leave the lightbox as usual. Unfortunately the last positions make it impossible to let the lightbox stay centered.
Primefaces 3.5 | JSF Mojarra 2.1.24 | JBoss 7.1.1

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 26 guests