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
cccae6c8
Commit
cccae6c8
authored
Apr 07, 2016
by
joshua-gould
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initial fit
parent
43ecce2a
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
20 deletions
+38
-20
js/morpheus-latest.min.js
js/morpheus-latest.min.js
+10
-10
src/ui/heat_map.js
src/ui/heat_map.js
+28
-10
No files found.
js/morpheus-latest.min.js
View file @
cccae6c8
This diff is collapsed.
Click to expand it.
src/ui/heat_map.js
View file @
cccae6c8
...
...
@@ -292,7 +292,8 @@ morpheus.HeatMap = function(options) {
'
-o-user-drag
'
:
'
none
'
,
'
-o-tap-highlight-color
'
:
'
rgba(0, 0, 0, 0)
'
,
'
overflow
'
:
'
auto
'
'
overflow-x
'
:
'
auto
'
,
'
overflow-y
'
:
'
hidden
'
});
var
tab
=
this
.
tabManager
.
add
({
...
...
@@ -1640,6 +1641,9 @@ morpheus.HeatMap.prototype = {
}
else
{
this
.
heatmap
.
getRowPositions
().
setSize
(
this
.
options
.
rowSize
);
}
this
.
revalidate
({
paint
:
false
});
}
if
(
this
.
options
.
columnSize
!=
null
)
{
...
...
@@ -1650,9 +1654,17 @@ morpheus.HeatMap.prototype = {
this
.
heatmap
.
getColumnPositions
().
setSize
(
this
.
options
.
columnSize
);
}
this
.
revalidate
({
paint
:
false
});
}
if
(
this
.
options
.
rowSize
!=
null
||
this
.
options
.
columnSize
!=
null
)
{
this
.
revalidate
();
if
(
this
.
options
.
rowSize
!=
null
&&
this
.
options
.
columnSize
!=
null
)
{
this
.
paintAll
({
paintRows
:
true
,
paintColumns
:
true
,
invalidateRows
:
true
,
invalidateColumns
:
true
});
}
this
.
options
.
parent
=
null
;
...
...
@@ -1975,6 +1987,7 @@ morpheus.HeatMap.prototype = {
this
.
project
.
getHoverColumnIndex
());
}
_this
.
revalidate
(
reval
);
event
.
preventDefault
();
});
...
...
@@ -2950,6 +2963,7 @@ morpheus.HeatMap.prototype = {
}
availablePixels
-=
trackPixels
;
var
positions
=
heatmap
.
getColumnPositions
();
var
totalCurrent
=
positions
.
getItemSize
(
positions
.
getLength
()
-
1
)
+
positions
.
getPosition
(
positions
.
getLength
()
-
1
);
...
...
@@ -3020,7 +3034,9 @@ morpheus.HeatMap.prototype = {
* Layout all the components
*/
revalidate
:
function
(
options
)
{
options
=
options
||
{};
options
=
$
.
extend
({},
{
paint
:
true
},
options
);
this
.
updatingScroll
=
true
;
var
availableHeight
=
this
.
getAvailableHeight
();
var
availableWidth
=
this
.
getAvailableWidth
();
...
...
@@ -3244,12 +3260,14 @@ morpheus.HeatMap.prototype = {
ypos
+=
this
.
hscroll
.
getUnscaledHeight
()
+
2
;
}
var
totalHeight
=
2
+
ypos
+
heatMapHeight
;
this
.
paintAll
({
paintRows
:
true
,
paintColumns
:
true
,
invalidateRows
:
true
,
invalidateColumns
:
true
});
if
(
options
.
paint
)
{
this
.
paintAll
({
paintRows
:
true
,
paintColumns
:
true
,
invalidateRows
:
true
,
invalidateColumns
:
true
});
}
this
.
$parent
.
css
({
height
:
Math
.
ceil
(
totalHeight
)
+
'
px
'
});
...
...
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