[common] fix bug 50245

This commit is contained in:
Maxim Kadushkin 2021-05-14 22:20:56 +03:00
parent 0e4dacae8f
commit 11ab64a4d8

View file

@ -120,9 +120,10 @@ Common.Utils = _.extend(new(function() {
me = this, me = this,
checkSize = function() { checkSize = function() {
var scale = {}; var scale = {};
if ( !!window.AscCommon && !!window.AscCommon.checkDeviceScale ) if ( !!window.AscCommon && !!window.AscCommon.checkDeviceScale ) {
scale = 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), " + 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)"; "screen and (min-resolution: 1.5dppx) and (max-resolution: 1.9dppx)";
var str_mq_200 = "screen and (-webkit-min-device-pixel-ratio: 2), " + var str_mq_200 = "screen and (-webkit-min-device-pixel-ratio: 2), " +