Commit c8176c94 authored by Oleg Korshul's avatar Oleg Korshul

zoom only for chrome

parent b37e1127
......@@ -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;
};
......
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