zoom only for chrome

This commit is contained in:
Oleg Korshul 2016-12-02 14:06:27 +03:00
parent b37e1127e8
commit c8176c94dc

View file

@ -105,6 +105,8 @@ Common.Utils = _.extend(new(function() {
me = this,
checkSize = function() {
me.zoom = 1;
if (isChrome && !isOpera && document && document.firstElementChild && document.body)
{
if (false)
{
// этот код - рабочий, но только если этот ифрейм открыт на весь размер браузера
@ -151,6 +153,7 @@ Common.Utils = _.extend(new(function() {
else
document.firstElementChild.style.zoom = "normal";
}
}
me.innerWidth = window.innerWidth * me.zoom;
me.innerHeight = window.innerHeight * me.zoom;
};