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.

#116968 Strange increasing of Popup-images

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 Ryan on Wednesday, 12 February 2025 09:42 GMT

hing

Hi

I started to test the current mediabox and have three images like this:

<li>Datei - Optionen - Add-Ins - Verwalten: Excel-Add-Ins - Los - "Fadenkreuz" markieren - OK<br /> <a href="https://www.joomlacontenteditor.net/images/0421/add_in.png" class="jcepopup" data-mediabox="1" type="image/png" data-mediabox-group="421"><img style="box-shadow: rgba(192, 192, 192, 0.75) 0px 0px 10px 5px; margin: 5px 0px; border: 5px currentcolor;" title="Zum Vergrössern klicken" src="https://www.joomlacontenteditor.net/intra/images/0421/add_in_50p.png" /></a>    <a href="https://www.joomlacontenteditor.net/images/0421/add_in_fenster.png" type="image/png" class="jcepopup" data-mediabox="1" data-mediabox-group="421" data-mediabox-type="image/png"><img style="box-shadow: rgba(192, 192, 192, 0.75) 0px 0px 10px 5px; margin: 5px 0px; border: 5px currentcolor;" title="Zum Vergrössern klicken" src="https://www.joomlacontenteditor.net/images/0421/add_in_fenster_50p.png" alt="add in fenster 50p" /></a></li>
<li>Excel beenden, neu starten</li>
<li>Im Kontextmenü findet sich ein wechselnder Eintrag "Fadenkreuz an / Fadenkreuz aus". Damit wird bei jeder angeklickten Zelle ein Fadenkreuz gezeichnet.<br /> <a href="https://www.joomlacontenteditor.net/images/0421/fadenkreuz.png" class="jcepopup" data-mediabox="1" type="image/png" data-mediabox-group="421"><img style="box-shadow: rgba(192, 192, 192, 0.75) 0px 0px 10px 5px; margin: 5px 0px; border: 5px currentcolor;" title="Zum Vergrössern klicken" src="https://www.joomlacontenteditor.net/intra/images/0421/fadenkreuz_50p.png" /></a></li>

basically, it works fine, but when I click on a popup to increase its size it looks like this (attachement):

Image size stays unchanged

the canvas keeps the width of the image, but the height ist maximized to the screen

Is it a bug or a feature? Or a bad setting in the code?

Attachments

Ryan

Please post a link to an example on your site.

Ryan Demmer

Lead Developer / CEO / CTO

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

hing

That's not possible - it's an internal site.

Ryan

Do you have the latest version of MediaBox installed? - https://www.joomlacontenteditor.net/downloads/mediabox

Ryan Demmer

Lead Developer / CEO / CTO

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

hing

Yes. Current Joomla 4.4.9 and Mediabox 2.2.1

Ryan

Does this happen with all images, or just one popup?

Ryan Demmer

Lead Developer / CEO / CTO

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

hing

I just tried it on some images on 3 pages of my site, and it's always the same.

I think it also has a wrong calculation of image size: the standard popup is always a little bit fuzzy, and only when I use the "Zoom +" button the image is sharp. Maybe for the normal popup it calculates "display size = real image size = whites canvas plus displayed image size". So the image is always a little bit shrunk and fuzzy.

Ryan

the canvas keeps the width of the image, but the height ist maximized to the screen

Is this on a mobile display? Your screenshot above looks like a milbe portrait mode display.

Ryan Demmer

Lead Developer / CEO / CTO

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

hing

No. It's Desktop, Win11 German, Firefox and MSEdge, 24" monitor.

hing

Hi Ryan

can I contribute something else to narrow down this topic?

Ryan

The Mediabox resizes itself based on the content of the popup, so if fits correctly within the screen.

Some css on your site might be expanding the size of the content, perhaps something to do with the list items. Without being to see the popup and the content rendered, I am unable to troubleshoot this issue further.

Ryan Demmer

Lead Developer / CEO / CTO

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

hing

I tried it again with a simple code - just paragraph and images, and get the same result in Firefox and MSEdge. The sourcecode for the result shows me a lot of classes named "wf-mediabox-..", and maybe that's the reason.

If you want I can upload more information, but for me it is OK now. This topic is not really heavy and I can live with it.

Ryan

The sourcecode for the result shows me a lot of classes named "wf-mediabox-..", and maybe that's the reason.

These are JCE MediaBox classes, styled by the MediaBox css.

Without access to the site it is incredibly difficult to troubleshoot this, as the issue is almost certainly caused by something specific to the site.

Ryan Demmer

Lead Developer / CEO / CTO

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