Skip to content
Snippets Groups Projects
Commit f8ef8ddd authored by Laurent's avatar Laurent
Browse files

hotline #64357 improve popup display on Apple devices

parent f2c1db2f
Branches
Tags 7.10.4
1 merge request!2352hotline #64357 improve popup display on Apple devices
Pipeline #2548 passed with stage
in 21 minutes and 4 seconds
- ticket #64357 : Correction des problèmes d'affichage sur tablette Apple des popups
\ No newline at end of file
......@@ -109,20 +109,21 @@
var fixWindowPositionAndWidth = function(dialog) {
var max_height = Math.round($(window).height() * 0.8);
var window_width = Math.round($(window).width());
var min_width = 400;
dialog
.css('position', 'fixed')
.css('top', '15%')
.css('left', '20%')
.css('width', '60%')
.css('left', window_width < min_width ? '0' : '20%')
.css('width', window_width < min_width ? '100%' : '60%')
.css('max-height', max_height + 'px')
.find('.ui-dialog-content')
.css('max-height', (max_height - 50) + 'px')
.css('width', 'auto')
.css('overflow-y', 'auto');
dialog.position({of: $(window)});
}
}
window.opacShowModal = function(url, width, height, returnFunc, showCloseBox, titleDialog) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment