#232 Posted in ‘Econa’

Latest post by Lefteris Kavadas on Thursday, 13 September 2018 23:47 EEST

Spacefuel
Hi

Is it possible to change the height of the image browser popup? The view with fixed height and with only two visible lines is difficult for use.

Lefteris Kavadas
Hi,

Yes, it is. The problem is that this is the core modal and it is not responsive. If we increase this too much some users will not able to use it at all.

Making it at 800 pixels seems like the maximum value we can apply.

In order to test this just edit the file plugins/content/econa_article_images/forms/econa.xml and add the attribute height="800" to the media field on line 5.

Regards

Lefteris Kavadas
Please ignore my previous message. It seems that this cannot be changed. The only way to change this is to use a custom modal. This is a restriction of the core Joomla modal.

Lefteris Kavadas
At the end, things got even worse. Even if we change the modal height or use a different modal it seems that the images list has a hardcoded height of 200 pixels. This means that it's impossible to make the core media manager. The only solution is to build a custom media manager.

Regards

Spacefuel
I found the solution.
Just put the css file at /administrator/templates/isis/css/custom.css
div.modal {
	height: 80%!important;
}
.modal-body, .modal-body iframe {
	max-height: none!important;
	height: 100%!important;
}
.contentpane.component, .container-popup {
	min-height: 100%;
}
iframe#imageframe {
	height: 60vh!important;
}
#imageForm .well {
	padding: 5px;
}

Lefteris Kavadas
That's a solution that it is working but since it modifies core files it cannot be added in our extension.

Thank you for sharing this just in case someone else needs it.

Please let me know if you need anything else.

Regards

Note: An active subscription is required in order to get support for our paid extensions. For our free extensions, if you don't have an account, register and then submit your support request.  In case you just want to ask a question, you can also use the contact form .

Firecoders
Are you using our extensions? Please post a review at the Joomla extensions directory!
Post a review