From ea3165e491a75ee81ed1ffc8384da075ab7d0869 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 28 Jun 2022 23:23:39 +0300 Subject: [PATCH] Fix Bug 57828 --- apps/common/main/lib/component/Window.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/common/main/lib/component/Window.js b/apps/common/main/lib/component/Window.js index 302e98995..2778c1cf0 100644 --- a/apps/common/main/lib/component/Window.js +++ b/apps/common/main/lib/component/Window.js @@ -490,7 +490,8 @@ define([ if (options.width=='auto') { text_cnt.height(Math.max(text.height(), icon_height) + ((check.length>0) ? (check.height() + parseInt(check.css('margin-top'))) : 0)); body.height(parseInt(text_cnt.css('height')) + parseInt(footer.css('height'))); - window.setSize(text.position().left + text.width() + parseInt(text_cnt.css('padding-right')), + var span_el = check.find('span'); + window.setSize(Math.max(text.width(), span_el.length>0 ? span_el.position().left + span_el.width() : 0) + text.position().left + parseInt(text_cnt.css('padding-right')), parseInt(body.css('height')) + parseInt(header.css('height'))); } else { text.css('white-space', 'normal');