Commit eeb1a1c2 authored by SergeyLuzyanin's avatar SergeyLuzyanin

small default chart size on retina screen

parent 410af9ad
...@@ -457,10 +457,7 @@ CShape.prototype.handleUpdateGeometry = function() ...@@ -457,10 +457,7 @@ CShape.prototype.handleUpdateGeometry = function()
CShape.prototype.convertPixToMM = function(pix) CShape.prototype.convertPixToMM = function(pix)
{ {
var drawingObjects = getDrawingObjects_Sp(this); var drawingObjects = getDrawingObjects_Sp(this);
var _ret = drawingObjects ? drawingObjects.convertMetric(pix, 0, 3) : 0; var _ret = drawingObjects ? drawingObjects.convertMetric(AscCommon.AscBrowser.convertToRetinaValue(pix, true), 0, 3) : 0;
if(AscCommon.AscBrowser.isRetina){
_ret *= 2;
}
return _ret; return _ret;
}; };
CShape.prototype.getCanvasContext = function() CShape.prototype.getCanvasContext = function()
......
...@@ -362,8 +362,8 @@ DrawingObjectsController.prototype.addChartDrawingObject = function(options) ...@@ -362,8 +362,8 @@ DrawingObjectsController.prototype.addChartDrawingObject = function(options)
} }
else else
{ {
w = this.drawingObjects.convertMetric(AscCommon.c_oAscChartDefines.defaultChartWidth, 0, 3); w = this.drawingObjects.convertMetric(AscCommon.AscBrowser.convertToRetinaValue(AscCommon.c_oAscChartDefines.defaultChartWidth, true), 0, 3);
h = this.drawingObjects.convertMetric(AscCommon.c_oAscChartDefines.defaultChartHeight, 0, 3); h = this.drawingObjects.convertMetric(AscCommon.AscBrowser.convertToRetinaValue(AscCommon.c_oAscChartDefines.defaultChartHeight, true), 0, 3);
} }
var chartLeft, chartTop; var chartLeft, chartTop;
......
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