@@ -92,6 +92,9 @@ class DataGrid extends Widget {
92
92
this . addClass ( 'p-DataGrid' ) ;
93
93
/* </DEPRECATED> */
94
94
95
+ //@ts -ignore
96
+ window . datagrid = this ;
97
+
95
98
// Parse the simple options.
96
99
this . _style = options . style || DataGrid . defaultStyle ;
97
100
this . _stretchLastRow = options . stretchLastRow || false ;
@@ -1506,15 +1509,15 @@ class DataGrid extends Widget {
1506
1509
and set remaining resize allowance number to 0.
1507
1510
*/
1508
1511
if ( colsRemaining - rowColumnCount < 0 ) {
1509
- this . _fitRowColumnHeaders ( this . dataModel , colsRemaining , padding )
1512
+ this . _fitRowColumnHeaders ( this . dataModel , padding , colsRemaining )
1510
1513
colsRemaining = 0 ;
1511
1514
} else {
1512
1515
/*
1513
1516
Otherwise the entire row-header column count can be resized.
1514
1517
Resize all row-header columns and subtract from remaining
1515
1518
column resize allowance.
1516
1519
*/
1517
- this . _fitRowColumnHeaders ( this . dataModel , rowColumnCount , padding ) ;
1520
+ this . _fitRowColumnHeaders ( this . dataModel , padding , rowColumnCount ) ;
1518
1521
colsRemaining = colsRemaining - rowColumnCount ;
1519
1522
}
1520
1523
} else {
@@ -1534,16 +1537,16 @@ class DataGrid extends Widget {
1534
1537
and set remaining resize allowance number to 0.
1535
1538
*/
1536
1539
if ( colsRemaining - bodyColumnCount < 0 ) {
1537
- this . _fitBodyColumnHeaders ( this . dataModel , colsRemaining , padding ) ;
1540
+ this . _fitBodyColumnHeaders ( this . dataModel , padding , colsRemaining ) ;
1538
1541
colsRemaining = 0 ;
1539
1542
} else {
1540
1543
/*
1541
1544
Otherwise the entire body column count can be resized.
1542
1545
Resize based on the smallest number between remaining
1543
1546
resize allowance and body column count.
1544
1547
*/
1545
- this . _fitBodyColumnHeaders ( this . dataModel ,
1546
- Math . min ( colsRemaining , bodyColumnCount ) , padding ) ;
1548
+ this . _fitBodyColumnHeaders ( this . dataModel , padding ,
1549
+ Math . min ( colsRemaining , bodyColumnCount ) ) ;
1547
1550
}
1548
1551
} else {
1549
1552
// No column resize cap passed - resizing all columns.
0 commit comments