From e11de36e9bbf274c27dc6ea06d0a735deca17ccc Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 7 Apr 2021 22:09:13 +0300 Subject: [PATCH] Fix loader --- apps/common/main/lib/component/LoadMask.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/common/main/lib/component/LoadMask.js b/apps/common/main/lib/component/LoadMask.js index c9634f2aa..1742b2064 100644 --- a/apps/common/main/lib/component/LoadMask.js +++ b/apps/common/main/lib/component/LoadMask.js @@ -131,6 +131,8 @@ define([ // if (ownerEl.height()<1 || ownerEl.width()<1) // loaderEl.css({visibility: 'hidden'}); + loaderEl.css('min-width', $('.asc-loadmask-title', loaderEl).width() + 105); + if (ownerEl && ownerEl.closest('.asc-window.modal').length==0) Common.util.Shortcuts.suspendEvents(); },500); @@ -158,7 +160,9 @@ define([ this.title = title; if (this.ownerEl && this.ownerEl.ismasked && this.loaderEl){ - $('.asc-loadmask-title', this.loaderEl).html(title); + var el = $('.asc-loadmask-title', this.loaderEl); + el.html(title); + this.loaderEl.css('min-width', el.width() + 105); } },