You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#112123 Long narrow images in popup does not fit on iPhone screen

Posted in ‘Mediabox’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by dkremer on Saturday, 29 October 2022 15:46 BST

dkremer
Joomla 4.2.3 and JCEMediaBox 2.1.2

I'm a new user, so this could very well be my problem, but I have been struggling with it for a few days and made no headway.

I'm working on a site that has a fair number long narrow images (mostly pendant light fixtures) that we want to popup when clicked. On most devices, things work fine. On iPhones (and perhaps android phones - don't have one to try), the image pops up full width of the screen and the bottom of the image is cut off so you cannot close the popup without rotating the phone so the image resizes.

I have tried setting sizes in the popup dialog for the link, but that does not seem to do anything. Even if it did, setting the size small enough for the phone would make it too small on a computer screen.

I tried setting values in the height and with under the System | Plugins | System - JCE MediaBox 2 | Options. I was hoping I could put in something like 80% for the height and have the popup limit the maximum height of the popup to 80% of the screen. That did not seem to do anything either.

Here are a couple example links:
https://lightworkslighting.com/light-fixtures/ceiling-fixtures/artemis
https://lightworkslighting.com/light-fixtures/ceiling-fixtures/annabelle-pendant

I was looking for ways to override the CSS for the popups, but I am not sure where to put the overrides. The user.css file entries are overridden by the jcemediabox.min.css file.

Any suggestions for how to deal with these things?

Ryan
Please try MediaBox 2.1.3 RC2 - https://www.joomlacontenteditor.net/downloads/mediabox/development

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

dkremer
That works great! Thank you.