From 11ab64a4d864e9574a4da91b4b0d076bd80c95bf Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Fri, 14 May 2021 22:20:56 +0300 Subject: [PATCH] [common] fix bug 50245 --- apps/common/main/lib/util/utils.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/common/main/lib/util/utils.js b/apps/common/main/lib/util/utils.js index 393b19757..f57734e29 100644 --- a/apps/common/main/lib/util/utils.js +++ b/apps/common/main/lib/util/utils.js @@ -120,9 +120,10 @@ Common.Utils = _.extend(new(function() { me = this, checkSize = function() { var scale = {}; - if ( !!window.AscCommon && !!window.AscCommon.checkDeviceScale ) + if ( !!window.AscCommon && !!window.AscCommon.checkDeviceScale ) { scale = window.AscCommon.checkDeviceScale(); - else { + AscCommon.correctApplicationScale(scale); + } else { var str_mq_150 = "screen and (-webkit-min-device-pixel-ratio: 1.5) and (-webkit-max-device-pixel-ratio: 1.9), " + "screen and (min-resolution: 1.5dppx) and (max-resolution: 1.9dppx)"; var str_mq_200 = "screen and (-webkit-min-device-pixel-ratio: 2), " +