Gallery v. 4.3.5 not centered

Phoca Gallery - image gallery extension
mooovoi
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 30 Jun 2017, 17:10

Gallery v. 4.3.5 not centered

Post by mooovoi »

Hi!

I upgraded Phoca Gallery to v. 4.3.5 and now all images and categories float left to border of container div. But before they were in the middle (like Phoca demo site). It is not a problem for desktop version, but on mobile (width<800px) looks not good.

I see on demo site .pg-msnr-container div has inline style "width = content_width" (mb. it dynamic calculate in php) and it easy to center with margin:auto. But on my site its width=parrent_width so its width always greater then content_width :( .

My site gallery URL: https://mooovoi.org/foto
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Gallery v. 4.3.5 not centered

Post by Jan »

Hi, can you paste a screenshot of what you exactly mean?

Jan
If you find Phoca extensions useful, please support the project
mooovoi
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 30 Jun 2017, 17:10

Re: Gallery v. 4.3.5 not centered

Post by mooovoi »

http://savepic.net/9440290.jpg

My Gallery was centered before 4.3.5 update exactly like demo-gallery.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Gallery v. 4.3.5 not centered

Post by Jan »

Hi, try to go to Phoca Gallery Options and enable this parameter:

Category View - Category View Settings - Category View Settings - YES

And let me know if this is Ok.

Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Gallery v. 4.3.5 not centered

Post by Jan »

EDIT:

Hi, I have added the obsolete centering method back, so:

1) Download the latest version and update (version 4.3.6)

https://www.phoca.cz/download/category/ ... -component

2) Set Phoca Gallery Options - General Settings - Phoca Gallery Center: Yes (Category and Categories View)

3) Set Phoca Gallery Options - Category View - Category View Settings -Masonry Effect - Centering: Yes (Fit Width)

The centering then work the same way like in old version

Jan
If you find Phoca extensions useful, please support the project
mooovoi
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 30 Jun 2017, 17:10

Re: Gallery v. 4.3.5 not centered

Post by mooovoi »

Thank you, but it works only if Masonry Effect is On :(

Without Masonry Effect gallery still not centered. I don`t want to enable Masonry Effect because it make me to recreate all thumbnails (20K photos!!!). And Masonry Effect work not stable in some browsers.

Maybe I can center gallery with CSS and @media-query. It is not universal solution, but...
Anyway thank you for help.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Gallery v. 4.3.5 not centered

Post by Jan »

Hi, should be Ok in version 4.3.7
https://www.phoca.cz/news/961-phoca-gal ... 7-released

Jan
If you find Phoca extensions useful, please support the project
Post Reply