Skip to content
Snippets Groups Projects
Commit b9e30094 authored by Reinhard Hutter's avatar Reinhard Hutter Committed by Seth Hill
Browse files

Issue #3417765 by hudri, naveenvalecha, sethhill, Drumanuel, larskleiner,...

Issue #3417765 by hudri, naveenvalecha, sethhill, Drumanuel, larskleiner, mistrytheory, stephen-cox: Large modal exceeds viewport height without scrollbar = actions unreachable
parent 8a3d8a1d
No related branches found
No related tags found
1 merge request!152Resolve #3417765 "Large modal exceeds viewport height without scrollbar"
Pipeline #234906 passed with warnings
...@@ -44,8 +44,9 @@ ...@@ -44,8 +44,9 @@
window.innerHeight || document.documentElement.clientHeight; window.innerHeight || document.documentElement.clientHeight;
if (bounding.bottom > viewPortHeight) { if (bounding.bottom > viewPortHeight) {
const $dialog = $('.ui-dialog-content', dialog); const $dialog = $('.ui-dialog-content', dialog);
const pos = $dialog.dialog('option', 'position'); const height = viewPortHeight - 200;
$dialog.dialog('option', 'position', pos); $dialog.dialog('option', 'height', height);
$dialog.css('overscroll-behavior', 'contain');
} }
}); });
} }
......
...@@ -30,8 +30,9 @@ ...@@ -30,8 +30,9 @@
var viewPortHeight = window.innerHeight || document.documentElement.clientHeight; var viewPortHeight = window.innerHeight || document.documentElement.clientHeight;
if (bounding.bottom > viewPortHeight) { if (bounding.bottom > viewPortHeight) {
var $dialog = $('.ui-dialog-content', dialog); var $dialog = $('.ui-dialog-content', dialog);
var pos = $dialog.dialog('option', 'position'); var height = viewPortHeight - 200;
$dialog.dialog('option', 'position', pos); $dialog.dialog('option', 'height', height);
$dialog.css('overscroll-behavior', 'contain');
} }
}); });
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment