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
Gallery v. 4.3.5 not centered
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Gallery v. 4.3.5 not centered
Hi, can you paste a screenshot of what you exactly mean?
Jan
Jan
If you find Phoca extensions useful, please support the project
-
mooovoi
- Phoca Newbie

- Posts: 4
- Joined: 30 Jun 2017, 17:10
Re: Gallery v. 4.3.5 not centered
http://savepic.net/9440290.jpg
My Gallery was centered before 4.3.5 update exactly like demo-gallery.
My Gallery was centered before 4.3.5 update exactly like demo-gallery.
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Gallery v. 4.3.5 not centered
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
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
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Gallery v. 4.3.5 not centered
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
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

- Posts: 4
- Joined: 30 Jun 2017, 17:10
Re: Gallery v. 4.3.5 not centered
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.
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.
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Gallery v. 4.3.5 not centered
If you find Phoca extensions useful, please support the project