Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
morpheus.js
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Daria Zenkova
morpheus.js
Commits
a834171f
Commit
a834171f
authored
Apr 11, 2016
by
joshua-gould
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed legend height in saved image
parent
18dc2a99
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/ui/heat_map.js
src/ui/heat_map.js
+4
-2
No files found.
src/ui/heat_map.js
View file @
a834171f
...
@@ -2769,13 +2769,15 @@ morpheus.HeatMap.prototype = {
...
@@ -2769,13 +2769,15 @@ morpheus.HeatMap.prototype = {
var
totalSize
=
this
.
getTotalSize
(
options
);
var
totalSize
=
this
.
getTotalSize
(
options
);
var
legendHeight
=
0
;
var
legendHeight
=
0
;
if
(
options
.
legend
)
{
if
(
options
.
legend
)
{
this
.
heatmap
.
getColorScheme
().
getNames
()
!=
null
?
this
.
heatmap
legendHeight
=
this
.
heatmap
.
getColorScheme
().
getNames
()
!=
null
?
this
.
heatmap
.
getColorScheme
().
getNames
().
length
*
14
:
40
;
.
getColorScheme
().
getNames
().
length
*
14
:
40
;
context
.
save
();
context
.
save
();
context
.
translate
(
50
,
0
);
context
.
translate
(
50
,
0
);
morpheus
.
HeatMapColorSchemeLegend
.
drawColorScheme
(
context
,
morpheus
.
HeatMapColorSchemeLegend
.
drawColorScheme
(
context
,
this
.
heatmap
.
getColorScheme
(),
200
,
true
);
this
.
heatmap
.
getColorScheme
(),
200
,
true
);
context
.
restore
();
context
.
restore
();
}
}
context
.
save
();
context
.
save
();
context
.
translate
(
4
,
legendHeight
);
context
.
translate
(
4
,
legendHeight
);
...
...
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