Skip to content

Commit

Permalink
Fix layout after deleting spreadsheet columns.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mailaender committed Sep 5, 2023
1 parent 9cf0926 commit 91cefca
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,7 @@ private void deleteColumn(XSSFSheet sheet, int columnToDelete) {
}
}
}
for(int c = 0; c < maxColumn; c++) {
sheet.setColumnWidth(c, sheet.getColumnWidth(c + 1));
}
sheet.autoSizeColumn(columnToDelete);
}

private void cloneCell(Cell newCell, Cell oldCell) {
Expand Down

0 comments on commit 91cefca

Please sign in to comment.