Tagged: Masonry Gallery
-
AuthorPosts
-
August 20, 2018 at 10:37 am #999284
Hi there nice people,
our client is a photographer and encountered another problem within the EnFold Masonry Gallery for him.
when clicking on an item the image opens in the lightbox. So far all ok. But when you reduce the size of the window, the image will squeeze (most of the time) instead of just scale (with the same proportions as the original).See here for the regular image:
https://ibb.co/fkTxvz
And here the squeezed version:
https://ibb.co/cQ6goKHere are the adjustements he made (he tried everything else at the size adjustments [Größen-Einstellung], but nothing did help):
https://ibb.co/e9t2TKDo you know what the problem could be?
The URL to the site is in the private content. If you’d like to have an personal account on the website please inform us.
Kind regards,
Renko- This topic was modified 6 years, 3 months ago by Renko.
August 20, 2018 at 2:05 pm #999361August 20, 2018 at 4:07 pm #999438Hello Victoria,
ah, thank you for that info. This code comes from this topic:
Does that mean, we can have either that or the other? Or is it possible to add some code to fix the squeezing of the images?
Kind regards,
renkoAugust 21, 2018 at 10:46 am #999732Hi Renko,
Yes, we need to add the page id class for that code to work only on that page. Can you give me a link to that other page again, please?
Best regards,
VictoriaAugust 21, 2018 at 10:53 am #999737Hi Victoria,
you are now a new Admin of the page. Your login data is in the Private Content.Thanks for your help.
Kind regards,
renkoAugust 21, 2018 at 8:05 pm #999986Hi Renko,
Thanks for that, can you give me the link to the page where the code I gave you before is supposed to work?
That was a test page, do you have an actual page like that?Best regards,
VictoriaAugust 22, 2018 at 8:30 am #1000166Hi Victoria,
it is the very same website. We filled in the code at Enfold Child: »General Styling« at the »Quick CSS« field down below…Or do I understand something wrong?
Kind regards,
RenkoAugust 22, 2018 at 2:02 pm #1000328Hi Renko,
I know where to find the code :)
We need to limit it’s action to the page where it is needed so that it does not mess with the lightbox height on other pages.
Best regards,
VictoriaAugust 22, 2018 at 3:29 pm #1000398Hi Victoria,
oh sorry. Well, that is hard to say, as there are plenty of images/portfolios on that site. (Around 1000 as the photographer says).
For example at the portfolio in the private content. The first image in the »color«-section is clearly squeezed.Does it mean we have to gather all portfolio/images where we spot the squeezing?
Sorry if I misunderstand it again …Kind regards,
RainerAugust 23, 2018 at 2:07 pm #1000735Hi Renko,
Ok, please remove the code I gave you.
Try this code instead:
@media only screen and (min-width: 1024px) { img.mfp-img { height: 100vh; } }
Best regards,
VictoriaAugust 23, 2018 at 5:06 pm #1000840Wow, that’s amazing, Victoria.
I tried some different images with the new code and it works perfectly.
Thank you for your helpful and patient assistance once again.
Kind regards,
Renko- This reply was modified 6 years, 2 months ago by Renko.
August 23, 2018 at 6:00 pm #1000864Hi Renko,
Glad we could help :)
If you need further assistance please let us know.
Best regards,
VictoriaAugust 28, 2018 at 3:48 pm #1002731Hello Victoria,
I am really sorry, but the client now wants to have something slightly different:
Every image should open in the lightbox as big as possible. So if the image is portrait the image should have maximum height (of course with no squeezing). If the image is landscape it should have maximum length (again no squeezing). And if the browser window is scaled there should be no squeezing or distortion.
Do you know what I mean? Is anything like that possible?
Sorry, if I have to be a pain again.
Kind regards,
Renko- This reply was modified 6 years, 2 months ago by Renko.
August 30, 2018 at 12:26 pm #1003514Hi Renko,
I’m not sure it is possible with pure css and might require some JavaScript.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.