diff --git a/addons/mail/static/src/js/announcement.js b/addons/mail/static/src/js/announcement.js index 9cc1d8bc6c3..7afb25a7da0 100644 --- a/addons/mail/static/src/js/announcement.js +++ b/addons/mail/static/src/js/announcement.js @@ -36,11 +36,13 @@ openerp_announcement = function(instance) { $('.openerp_webclient_container').css('height', 'calc(100% - 34px)'); }, 400); }; + var height = $('#announcement_bar_table').outerHeight() + + $('#oe_main_menu_navbar').outerHeight(); + $('.openerp_webclient_container').css('height', 'calc(100% - ' + height + 'px)'); $bar.find('.close').on('click', close); self.trigger('ab_loaded', $bar); }); - $('.openerp_webclient_container').css('height', 'calc(100% - 64px)'); $('head').append($css); }).fail(function(result, ev){ ev.preventDefault();