Primeng: New Galleria

Created on 15 Jun 2017  路  4Comments  路  Source: primefaces/primeng

when using Gallery component in mobile version, It add horizontal scrollbar and width become more than width of mobile screen width.

It should be responsive. Issue can be replicated in current theme(Ultima) as well.

Can u plz let us know when it can be fix?

Thanks

I'm submitting a ... (check one with "x")

[ ] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Plunkr Case (Bug Reports)
Please fork the plunkr below and create a case demonstrating your bug report. Issues without a plunkr have much less possibility to be reviewed.

http://plnkr.co/edit/VZbdZfQ7SuTV87tTkbYR?p=preview

Current behavior

Expected behavior

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

  • Angular version: 2.0.X

  • PrimeNG version: 2.0.X

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

  • Language: [all | TypeScript X.X | ES6/7 | ES5]

  • Node (for AoT issues): node --version =

breaking-change enhancement

Most helpful comment

Hi Catagay,

Is there any plan for this enhancement?

All 4 comments

Hi Catagay,

Is there any plan for this enhancement?

You can do this with a hostlistener:

  @HostListener('window:resize', ['$event'])
  onResize(event) {
    this.width = event.target.innerWidth;
    this.height = event.target.innerHeight - 50;
  }

The - 50 is the height of the filmstrip in the gallery.
where width and height are the size properties of the gallery:

    <p-galleria
      [images]="images"
      [panelWidth]="width"
      [panelHeight]="height"
    ></p-galleria>

there's still spacing between the gallery and filmstrip in mobile view. Any advice?

image

In 9.1.0, we'll reimplement the Galleria, it will be like we recently did for PrimeReact.

https://primefaces.org/primereact/showcase/#/galleria

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mitosandov picture mitosandov  路  3Comments

cyberrranger picture cyberrranger  路  3Comments

jisqaqov picture jisqaqov  路  3Comments

Faigjaz picture Faigjaz  路  3Comments

philly-vanilly picture philly-vanilly  路  3Comments