Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
eeb1a1c2
Commit
eeb1a1c2
authored
Aug 16, 2017
by
SergeyLuzyanin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small default chart size on retina screen
parent
410af9ad
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
cell/model/DrawingObjects/Format/ShapePrototype.js
cell/model/DrawingObjects/Format/ShapePrototype.js
+1
-4
cell/view/DrawingObjectsController.js
cell/view/DrawingObjectsController.js
+2
-2
No files found.
cell/model/DrawingObjects/Format/ShapePrototype.js
View file @
eeb1a1c2
...
...
@@ -457,10 +457,7 @@ CShape.prototype.handleUpdateGeometry = function()
CShape
.
prototype
.
convertPixToMM
=
function
(
pix
)
{
var
drawingObjects
=
getDrawingObjects_Sp
(
this
);
var
_ret
=
drawingObjects
?
drawingObjects
.
convertMetric
(
pix
,
0
,
3
)
:
0
;
if
(
AscCommon
.
AscBrowser
.
isRetina
){
_ret
*=
2
;
}
var
_ret
=
drawingObjects
?
drawingObjects
.
convertMetric
(
AscCommon
.
AscBrowser
.
convertToRetinaValue
(
pix
,
true
),
0
,
3
)
:
0
;
return
_ret
;
};
CShape
.
prototype
.
getCanvasContext
=
function
()
...
...
cell/view/DrawingObjectsController.js
View file @
eeb1a1c2
...
...
@@ -362,8 +362,8 @@ DrawingObjectsController.prototype.addChartDrawingObject = function(options)
}
else
{
w
=
this
.
drawingObjects
.
convertMetric
(
AscCommon
.
c_oAscChartDefines
.
defaultChartWidth
,
0
,
3
);
h
=
this
.
drawingObjects
.
convertMetric
(
AscCommon
.
c_oAscChartDefines
.
defaultChartHeight
,
0
,
3
);
w
=
this
.
drawingObjects
.
convertMetric
(
AscCommon
.
AscBrowser
.
convertToRetinaValue
(
AscCommon
.
c_oAscChartDefines
.
defaultChartWidth
,
true
)
,
0
,
3
);
h
=
this
.
drawingObjects
.
convertMetric
(
AscCommon
.
AscBrowser
.
convertToRetinaValue
(
AscCommon
.
c_oAscChartDefines
.
defaultChartHeight
,
true
)
,
0
,
3
);
}
var
chartLeft
,
chartTop
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment