Commit 5a8e32b8 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

ppiX = ppiY = 96

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@67484 954022d7-b5bf-4e40-9824-e11837661b57
parent 275658fa
...@@ -393,19 +393,14 @@ ...@@ -393,19 +393,14 @@
this.setCanvas(settings.canvas); this.setCanvas(settings.canvas);
var ppiTest = this.ppiX = 96;
$('<div style="position: absolute; width: 10in; height:10in; visibility:hidden; padding:0;"/>') this.ppiY = 96;
.appendTo("body");
this.ppiX = asc_round(ppiTest[0] ? (ppiTest[0].offsetWidth * 0.1) : 96);
this.ppiY = asc_round(ppiTest[0] ? (ppiTest[0].offsetHeight * 0.1) : 96);
if (AscBrowser.isRetina) { if (AscBrowser.isRetina) {
this.ppiX <<= 1; this.ppiX <<= 1;
this.ppiY <<= 1; this.ppiY <<= 1;
} }
ppiTest.remove();
this._mct = new Matrix(); // units transform this._mct = new Matrix(); // units transform
this._mt = new Matrix(); // user transform this._mt = new Matrix(); // user transform
this._mbt = new Matrix(); // bound transform this._mbt = new Matrix(); // bound transform
......
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