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
6a7c0f99
Commit
6a7c0f99
authored
Apr 07, 2016
by
joshua-gould
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initial fit size
parent
cccae6c8
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
13 deletions
+28
-13
js/morpheus-latest.min.js
js/morpheus-latest.min.js
+10
-10
src/ui/heat_map.js
src/ui/heat_map.js
+18
-3
No files found.
js/morpheus-latest.min.js
View file @
6a7c0f99
This diff is collapsed.
Click to expand it.
src/ui/heat_map.js
View file @
6a7c0f99
...
@@ -292,8 +292,8 @@ morpheus.HeatMap = function(options) {
...
@@ -292,8 +292,8 @@ morpheus.HeatMap = function(options) {
'
-o-user-drag
'
:
'
none
'
,
'
-o-user-drag
'
:
'
none
'
,
'
-o-tap-highlight-color
'
:
'
rgba(0, 0, 0, 0)
'
,
'
-o-tap-highlight-color
'
:
'
rgba(0, 0, 0, 0)
'
,
'
overflow-x
'
:
'
auto
'
,
'
overflow-x
'
:
'
visible
'
,
'
overflow-y
'
:
'
hidden
'
'
overflow-y
'
:
'
visible
'
});
});
var
tab
=
this
.
tabManager
.
add
({
var
tab
=
this
.
tabManager
.
add
({
...
@@ -1659,6 +1659,21 @@ morpheus.HeatMap.prototype = {
...
@@ -1659,6 +1659,21 @@ morpheus.HeatMap.prototype = {
});
});
}
}
if
(
this
.
options
.
rowSize
!=
null
&&
this
.
options
.
columnSize
!=
null
)
{
if
(
this
.
options
.
rowSize
!=
null
&&
this
.
options
.
columnSize
!=
null
)
{
// note that we have to revalidate twice because column sizes are
// dependent on row sizes and vice versa
if
(
this
.
options
.
columnSize
===
'
fit
'
)
{
this
.
heatmap
.
getColumnPositions
().
setSize
(
this
.
getFitColumnSize
());
this
.
revalidate
({
paint
:
false
});
}
if
(
this
.
options
.
rowSize
===
'
fit
'
)
{
this
.
heatmap
.
getRowPositions
().
setSize
(
this
.
getFitRowSize
());
this
.
revalidate
({
paint
:
false
});
}
this
.
paintAll
({
this
.
paintAll
({
paintRows
:
true
,
paintRows
:
true
,
paintColumns
:
true
,
paintColumns
:
true
,
...
@@ -1987,7 +2002,7 @@ morpheus.HeatMap.prototype = {
...
@@ -1987,7 +2002,7 @@ morpheus.HeatMap.prototype = {
this
.
project
this
.
project
.
getHoverColumnIndex
());
.
getHoverColumnIndex
());
}
}
_this
.
revalidate
(
reval
);
_this
.
revalidate
(
reval
);
event
.
preventDefault
();
event
.
preventDefault
();
});
});
...
...
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