File tree 2 files changed +15
-14
lines changed
2 files changed +15
-14
lines changed Original file line number Diff line number Diff line change 9
9
'use strict' ;
10
10
11
11
module . exports = {
12
- maxDimensionCount : 60 ,
13
- overdrag : 45 ,
14
12
cellPad : 8 ,
13
+ columnExtentOffset : 10 ,
14
+ columnTitleOffset : 28 ,
15
+ emptyHeaderHeight : 16 ,
15
16
latexCheck : / ^ \$ .* \$ $ / ,
16
- wrapSplitCharacter : ' ' ,
17
- wrapSpacer : ' ' ,
18
- lineBreaker : '<br>' ,
19
- uplift : 5 ,
20
17
goldenRatio : 1.618 ,
21
- columnTitleOffset : 28 ,
22
- columnExtentOffset : 10 ,
23
- transitionEase : 'cubic-out' ,
24
- transitionDuration : 100 ,
25
- releaseTransitionEase : 'cubic-out' ,
18
+ lineBreaker : '<br>' ,
19
+ maxDimensionCount : 60 ,
20
+ overdrag : 45 ,
26
21
releaseTransitionDuration : 120 ,
27
- scrollbarWidth : 8 ,
22
+ releaseTransitionEase : 'cubic-out' ,
28
23
scrollbarCaptureWidth : 18 ,
29
- scrollbarOffset : 5 ,
30
24
scrollbarHideDelay : 1000 ,
31
25
scrollbarHideDuration : 1000 ,
26
+ scrollbarOffset : 5 ,
27
+ scrollbarWidth : 8 ,
28
+ transitionDuration : 100 ,
29
+ transitionEase : 'cubic-out' ,
30
+ uplift : 5 ,
31
+ wrapSpacer : ' ' ,
32
+ wrapSplitCharacter : ' ' ,
32
33
cn : {
33
34
// general class names
34
35
table : 'table' ,
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ module.exports = function calc(gd, trace) {
24
24
var domain = trace . domain ;
25
25
var groupWidth = Math . floor ( gd . _fullLayout . _size . w * ( domain . x [ 1 ] - domain . x [ 0 ] ) ) ;
26
26
var groupHeight = Math . floor ( gd . _fullLayout . _size . h * ( domain . y [ 1 ] - domain . y [ 0 ] ) ) ;
27
- var headerRowHeights = headerValues . length ? headerValues [ 0 ] . map ( function ( ) { return trace . header . height ; } ) : [ ] ;
27
+ var headerRowHeights = trace . header . values . length ? headerValues [ 0 ] . map ( function ( ) { return trace . header . height ; } ) : [ c . emptyHeaderHeight ] ;
28
28
var rowHeights = cellsValues . length ? cellsValues [ 0 ] . map ( function ( ) { return trace . cells . height ; } ) : [ ] ;
29
29
var headerHeight = headerRowHeights . reduce ( function ( a , b ) { return a + b ; } , 0 ) ;
30
30
var scrollHeight = groupHeight - headerHeight ;
You can’t perform that action at this time.
0 commit comments