Fix dropdown menus hidden in modals 1241

This commit is contained in:
yflory 2023-09-25 16:07:23 +02:00
parent fe3dfb7628
commit ea6d69eb48
3 changed files with 7 additions and 3 deletions

View File

@ -144,7 +144,6 @@
display: flex;
> * {
overflow: auto;
width: 100%;
min-width: 260px;
max-width: 500px;
@ -157,6 +156,10 @@
}
}
.cp-alertify-scrollable {
overflow: auto;
}
.msg {
padding: @alertify_padding-base;
margin-bottom: @alertify_padding-base;

View File

@ -536,7 +536,8 @@ define([
message = dialog.message(msg);
}
var frame = h('div', [
var cls = opt.scrollable ? '.cp-alertify-scrollable' : '';
var frame = h('div'+cls, [
message,
dialog.getButtons(opt.buttons, opt.onClose)
]);

View File

@ -1765,7 +1765,7 @@ define([
},
];
var modal = UI.dialog.customModal(content, {buttons: buttons });
var modal = UI.dialog.customModal(content, {scrollable: true, buttons: buttons });
UI.openCustomModal(modal);
};