Commit 451ab397 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@61130 954022d7-b5bf-4e40-9824-e11837661b57
parent 9003fb68
...@@ -2067,7 +2067,16 @@ CDrawingDocument.prototype = ...@@ -2067,7 +2067,16 @@ CDrawingDocument.prototype =
_table_styles.Recalculate_Page(0); _table_styles.Recalculate_Page(0);
this.Native["DD_StartNativeDraw"](TABLE_STYLE_WIDTH_PIX, TABLE_STYLE_HEIGHT_PIX, _pageW, _pageH); var _w_px = TABLE_STYLE_WIDTH_PIX;
var _h_px = TABLE_STYLE_HEIGHT_PIX;
if (AscBrowser.isRetina)
{
_w_px *= 2;
_h_px *= 2;
}
this.Native["DD_StartNativeDraw"](_w_px, _h_px, _pageW, _pageH);
var _old_mode = editor.isViewMode; var _old_mode = editor.isViewMode;
editor.isViewMode = true; editor.isViewMode = true;
......
...@@ -5051,12 +5051,18 @@ CStylesPainter.prototype = ...@@ -5051,12 +5051,18 @@ CStylesPainter.prototype =
drawStyle: function(graphics, style, _api) drawStyle: function(graphics, style, _api)
{ {
_api.WordControl.m_oDrawingDocument.Native["DD_StartNativeDraw"](this.STYLE_THUMBNAIL_WIDTH, this.STYLE_THUMBNAIL_HEIGHT, var _w_px = this.STYLE_THUMBNAIL_WIDTH;
this.STYLE_THUMBNAIL_WIDTH * g_dKoef_pix_to_mm, this.STYLE_THUMBNAIL_HEIGHT * g_dKoef_pix_to_mm); var _h_px = this.STYLE_THUMBNAIL_HEIGHT;
var dKoefToMM = g_dKoef_pix_to_mm; var dKoefToMM = g_dKoef_pix_to_mm;
if (this.IsRetinaEnabled)
if (AscBrowser.isRetina)
{
_w_px *= 2;
_h_px *= 2;
dKoefToMM /= 2; dKoefToMM /= 2;
}
_api.WordControl.m_oDrawingDocument.Native["DD_StartNativeDraw"](_w_px, _h_px, _w_px * dKoefToMM, _h_px * dKoefToMM);
g_oTableId.m_bTurnOff = true; g_oTableId.m_bTurnOff = true;
History.TurnOff(); History.TurnOff();
...@@ -5139,8 +5145,8 @@ CStylesPainter.prototype = ...@@ -5139,8 +5145,8 @@ CStylesPainter.prototype =
_dc.Recalculate_Page(0, true); _dc.Recalculate_Page(0, true);
var y = 0; var y = 0;
var b = dKoefToMM * this.STYLE_THUMBNAIL_HEIGHT; var b = dKoefToMM * _h_px;
var w = dKoefToMM * this.STYLE_THUMBNAIL_WIDTH; var w = dKoefToMM * _w_px;
var off = 10 * dKoefToMM; var off = 10 * dKoefToMM;
var off2 = 5 * dKoefToMM; var off2 = 5 * dKoefToMM;
var off3 = 1 * dKoefToMM; var off3 = 1 * dKoefToMM;
......
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