apply to sdk only integer zoom
This commit is contained in:
parent
e2f86ace35
commit
e9908541a7
|
@ -123,6 +123,10 @@ Common.Utils = _.extend(new(function() {
|
||||||
|
|
||||||
me.zoom = window.devicePixelRatio / _devicePixelRatio;
|
me.zoom = window.devicePixelRatio / _devicePixelRatio;
|
||||||
document.firstElementChild.style.zoom = 1.0 / me.zoom;
|
document.firstElementChild.style.zoom = 1.0 / me.zoom;
|
||||||
|
|
||||||
|
if ( _devicePixelRatio % 1 > 0 )
|
||||||
|
$('#editor_sdk').css('zoom', 1.0 / _devicePixelRatio);
|
||||||
|
else $('#editor_sdk').css('zoom', '');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
document.firstElementChild.style.zoom = "normal";
|
document.firstElementChild.style.zoom = "normal";
|
||||||
|
|
Loading…
Reference in a new issue