New carousel padding/margin are off.

UI Components for JSF
Post Reply
djmj
Posts: 400
Joined: 16 Dec 2011, 01:23

08 Jul 2015, 05:40

The padding/margin of upcoming carousel are a little bit off since basic ui-panel uses 0.2em padding and new carousel uses fixed 1px.

Suggestions:

Except a little right margin of the last visible item all paddings and margins are same as from other container components.

Code: Select all

.ui-carousel
{
    padding: 0.2em; // or use ui-panel class
}

.ui-carousel .ui-carousel-viewport 
{
    margin: 0.2em 0;
}

.ui-carousel .ui-carousel-viewport .ui-carousel-items .ui-carousel-item
{
    margin-right: 0.2em;
}

.ui-carousel .ui-carousel-footer 
{
    // remove margin definition
}

.ui-carousel .ui-carousel-header 
{
    // remove margin definition
}
Preview:

Image
Primefaces: 11.0.0 RC2
Primefaces-Extension: 11.0.0
PrimeFaces-Mobile: 11.0
OmniFaces: 3.11
Jsf: Mojarra 2.3.8
Server: Glassfish 5.1.0

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

08 Jul 2015, 10:08

I don't see this in FF 39...

djmj
Posts: 400
Joined: 16 Dec 2011, 01:23

08 Jul 2015, 21:01

I see it in FF 39. Screenshot. Borders are very close to each other.

Image

created issue: https://github.com/primefaces/primefaces/issues/513
Last edited by djmj on 12 Jul 2015, 17:31, edited 1 time in total.
Primefaces: 11.0.0 RC2
Primefaces-Extension: 11.0.0
PrimeFaces-Mobile: 11.0
OmniFaces: 3.11
Jsf: Mojarra 2.3.8
Server: Glassfish 5.1.0

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

09 Jul 2015, 09:52

That is what I indeed see. I just compared with your initial image which differs.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 53 guests