Page 1 of 1

Gallery v. 4.3.5 not centered

Posted: 30 Jun 2017, 17:38
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

Re: Gallery v. 4.3.5 not centered

Posted: 03 Jul 2017, 14:53
by Jan
Hi, can you paste a screenshot of what you exactly mean?

Jan

Re: Gallery v. 4.3.5 not centered

Posted: 05 Jul 2017, 13:57
by mooovoi
http://savepic.net/9440290.jpg

My Gallery was centered before 4.3.5 update exactly like demo-gallery.

Re: Gallery v. 4.3.5 not centered

Posted: 07 Jul 2017, 12:55
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

Re: Gallery v. 4.3.5 not centered

Posted: 07 Jul 2017, 14:02
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

Re: Gallery v. 4.3.5 not centered

Posted: 11 Jul 2017, 17:57
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.

Re: Gallery v. 4.3.5 not centered

Posted: 19 Dec 2017, 23:35
by Jan
Hi, should be Ok in version 4.3.7
https://www.phoca.cz/news/961-phoca-gal ... 7-released

Jan