From 14205b4145c2fd60161527cb5b8b22d176f810e6 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Tue, 22 Jun 2021 13:34:11 +0300 Subject: [PATCH] fix modal --- client/src/ui.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/src/ui.js b/client/src/ui.js index c252f9170b..896172404f 100644 --- a/client/src/ui.js +++ b/client/src/ui.js @@ -187,8 +187,8 @@ define('ui', [], function () { this.$el.on('shown.bs.modal', (e, r) => { $('.modal-backdrop').not('.stacked').addClass('stacked'); - let headerHeight = this.$el.find('.modal-header').outerHeight(); - let footerHeight = this.$el.find('.modal-footer').outerHeight(); + let headerHeight = this.$el.find('.modal-header').outerHeight() || 0; + let footerHeight = this.$el.find('.modal-footer').outerHeight() || 0; let diffHeight = headerHeight + footerHeight; @@ -210,6 +210,7 @@ define('ui', [], function () { return; } + let cssParams = { overflow: 'auto', };