Commit db8f92a7 authored by Alexander.Trofimov's avatar Alexander.Trofimov

Размеры 80x18 вместо 100x22

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@47900 954022d7-b5bf-4e40-9824-e11837661b57
parent 9d2063fa
......@@ -785,8 +785,8 @@
this.docStylesImage = "";
this.docStyles = null;
this.styleThumbnailWidth = 100;
this.styleThumbnailHeight = 22;
this.styleThumbnailWidth = 80;
this.styleThumbnailHeight = 18;
this.styleThumbnailWidthPt = this.styleThumbnailWidth * 72 / 96;
this.styleThumbnailHeightPt = this.styleThumbnailHeight * 72 / 96;
......@@ -805,6 +805,7 @@
generateStyles: function (cellStyles, fmgrGraphics) {
var nStylesCount = cellStyles.length;
var oCanvas = document.createElement('canvas');
//var oCanvas = document.getElementById('TestCanvas');
oCanvas.width = this.styleThumbnailWidth;
oCanvas.height = nStylesCount * this.styleThumbnailHeight;
var ctx = oCanvas.getContext('2d');
......
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