Commit 540cabba authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Поправил отрисовку нижнего бордера и отступа слева для миниатюр стилей ячеек

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@48014 954022d7-b5bf-4e40-9824-e11837661b57
parent 8a483880
......@@ -891,7 +891,7 @@
this.styleThumbnailWidthPt, nOffsetY + this.styleThumbnailHeightPt);
drawBorder(oBorders.t, 0, nOffsetY,
this.styleThumbnailWidthPt, nOffsetY);
drawBorder(oBorders.t, 0, nOffsetY + this.styleThumbnailHeightPt,
drawBorder(oBorders.b, 0, nOffsetY + this.styleThumbnailHeightPt,
this.styleThumbnailWidthPt, nOffsetY + this.styleThumbnailHeightPt);
// Draw text
......@@ -902,10 +902,11 @@
var format = oStyle.getFont();
var oFont = new asc.FontProperties(format.fn, format.fs, format.b, format.i, format.u, format.s);
var width_padding = 2.25; // 3 * 96 / 72
var tm = stringRenderer.measureString(oStyle.Name);
oGraphics.setFont(oFont);
oGraphics.setFillStyle(oFontColor);
oGraphics.fillText(oStyle.Name, 0, nOffsetY + tm.baseline);
oGraphics.fillText(oStyle.Name, width_padding, nOffsetY + tm.baseline);
oGraphics.restore();
}
};
......
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