Commit a9c758fa authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

баг с определением ретины при зуме

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@68423 954022d7-b5bf-4e40-9824-e11837661b57
parent 9f6d7e65
......@@ -75,6 +75,8 @@ AscBrowser.checkZoom = function()
{
document.firstElementChild.style.zoom = "reset";
AscBrowser.zoom = document.body.clientWidth / window.innerWidth;
AscBrowser.isRetina = (Math.abs(2 - (window.devicePixelRatio / AscBrowser.zoom)) < 0.01);
}
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment