Fix egw messages in popup are wrongly positioned

This commit is contained in:
Hadi Nategh 2022-11-07 16:43:26 +01:00
parent ed50291ad4
commit 8b83ed85d3
3 changed files with 20 additions and 0 deletions

View File

@ -72,6 +72,10 @@ egw.extend('message', egw.MODULE_WND_LOCAL, function(_app, _wnd)
var jQuery = _wnd.jQuery;
var wrapper = jQuery('.egw_message_wrapper').length > 0 ? jQuery('.egw_message_wrapper')
: jQuery(_wnd.document.createElement('div')).addClass('egw_message_wrapper noPrint').css('position', 'absolute');
// add popup indicator class to be able to distinguish between mainframe message or popup message
if (this.is_popup()) wrapper.addClass('isPopup');
if (_msg && !_type)
{
if (typeof error_reg_exp == 'undefined') error_reg_exp = new RegExp('(error|'+egw.lang('error')+')', 'i');

View File

@ -3542,6 +3542,14 @@ div.admin-config form > table td b {
/**
* Message in popup
*/
body .egw_message_wrapper.isPopup {
top: 0px;
bottom: auto;
overflow-y: unset;
right: 33% !important;
max-width: unset;
min-width: unset;
}
body .egw_message_wrapper {
background-color: #d9d9d9;
right: 0 !important;

View File

@ -439,6 +439,14 @@ div.admin-config form > table {
/**
* Message in popup
*/
body .egw_message_wrapper.isPopup{
top: 0px;
bottom: auto;
overflow-y: unset;
right: 33% !important;
max-width: unset;
min-width: unset;
}
body .egw_message_wrapper {
.background_color_15_gray;
right: 0 !important;