Skip to content

Commit d6aeb16

Browse files
monster910mportuga
authored andcommitted
fix(exporter): Fix bug where selection column width was included
1 parent 115e790 commit d6aeb16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/features/exporter/js/exporter.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1535,7 +1535,7 @@
15351535
// The standard column width in Microsoft Excel 2000 is 8.43 characters based on fixed-width Courier font
15361536
// Width of 10 in excel is 75 pixels
15371537
var colWidths = [];
1538-
var startDataIndex = grid.treeBase ? grid.treeBase.numberLevels : 0;
1538+
var startDataIndex = grid.treeBase ? grid.treeBase.numberLevels : (grid.enableRowSelection !== false ? 1 : 0);
15391539
for (var i = startDataIndex; i < grid.columns.length; i++) {
15401540
colWidths.push({width: (grid.columns[i].drawnWidth / 75) * 10});
15411541
}

0 commit comments

Comments
 (0)