Skip to content

Commit

Permalink
Elastic: Fix setting pretty select popup width
Browse files Browse the repository at this point in the history
In some cases the min_width was set to value bigger than max_width.
  • Loading branch information
alecpl committed Apr 7, 2019
1 parent b8f27af commit 706313b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skins/elastic/ui.js
Expand Up @@ -3421,9 +3421,9 @@ function rcube_elastic_ui()
var open_func = function(e) {
var items = [],
dialog = select.closest('.ui-dialog')[0],
min_width = select.outerWidth(),
max_height = $(document.body).height() - 75,
max_width = $(document.body).width() - 20,
min_width = Math.min(select.outerWidth(), max_width),
value = select.val();

if (!is_mobile()) {
Expand Down

0 comments on commit 706313b

Please sign in to comment.