File tree 2 files changed +4
-4
lines changed
src/app/modules/angular-slickgrid/services
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ export class ResizerService {
95
95
96
96
// calculate bottom padding
97
97
// if using pagination, we need to add the pagination height to this bottom padding
98
- let bottomPadding = ( autoResizeOptions && autoResizeOptions . bottomPadding ) ? autoResizeOptions . bottomPadding : DATAGRID_BOTTOM_PADDING ;
98
+ let bottomPadding = ( autoResizeOptions && autoResizeOptions . bottomPadding !== undefined ) ? autoResizeOptions . bottomPadding : DATAGRID_BOTTOM_PADDING ;
99
99
if ( bottomPadding && gridOptions . enablePagination ) {
100
100
bottomPadding += DATAGRID_PAGINATION_HEIGHT ;
101
101
}
@@ -122,9 +122,9 @@ export class ResizerService {
122
122
const availableHeight = gridHeight - gridOffsetTop - bottomPadding ;
123
123
const availableWidth = this . _gridContainerElm . width ( ) || window . innerWidth || 0 ;
124
124
const maxHeight = autoResizeOptions && autoResizeOptions . maxHeight || undefined ;
125
- const minHeight = autoResizeOptions && autoResizeOptions . minHeight || DATAGRID_MIN_HEIGHT ;
125
+ const minHeight = ( autoResizeOptions && autoResizeOptions . minHeight !== undefined ) ? autoResizeOptions . minHeight : DATAGRID_MIN_HEIGHT ;
126
126
const maxWidth = autoResizeOptions && autoResizeOptions . maxWidth || undefined ;
127
- const minWidth = autoResizeOptions && autoResizeOptions . minWidth || DATAGRID_MIN_WIDTH ;
127
+ const minWidth = ( autoResizeOptions && autoResizeOptions . minWidth !== undefined ) ? autoResizeOptions . minWidth : DATAGRID_MIN_WIDTH ;
128
128
129
129
let newHeight = availableHeight ;
130
130
let newWidth = ( autoResizeOptions && autoResizeOptions . sidePadding ) ? availableWidth - autoResizeOptions . sidePadding : availableWidth ;
Original file line number Diff line number Diff line change 11
11
"author" : " Ghislain B." ,
12
12
"license" : " MIT" ,
13
13
"devDependencies" : {
14
- "cypress" : " ^4.5 .0" ,
14
+ "cypress" : " ^4.6 .0" ,
15
15
"mocha" : " ^5.2.0" ,
16
16
"mochawesome" : " ^3.1.2" ,
17
17
"mochawesome-merge" : " ^1.0.7" ,
You can’t perform that action at this time.
0 commit comments