Skip to content

Commit

Permalink
fix(exporter): Fix bug where selection column width was included
Browse files Browse the repository at this point in the history
  • Loading branch information
monster910 authored and mportuga committed Feb 2, 2018
1 parent 115e790 commit d6aeb16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/exporter/js/exporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -1535,7 +1535,7 @@
// The standard column width in Microsoft Excel 2000 is 8.43 characters based on fixed-width Courier font
// Width of 10 in excel is 75 pixels
var colWidths = [];
var startDataIndex = grid.treeBase ? grid.treeBase.numberLevels : 0;
var startDataIndex = grid.treeBase ? grid.treeBase.numberLevels : (grid.enableRowSelection !== false ? 1 : 0);
for (var i = startDataIndex; i < grid.columns.length; i++) {
colWidths.push({width: (grid.columns[i].drawnWidth / 75) * 10});
}
Expand Down

0 comments on commit d6aeb16

Please sign in to comment.