Skip to content

Commit

Permalink
making separate methods autosize rows and cols because someone may ne…
Browse files Browse the repository at this point in the history
…ed only a
  • Loading branch information
clairtonluz committed Aug 9, 2014
1 parent 0118321 commit c9fa2bd
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/main/java/taro/spreadsheet/model/SpreadsheetTab.java
Expand Up @@ -144,12 +144,8 @@ public void setColWidth(int col, int twips) {
}

public void autosizeRowsAndCols() {
for (int col = 0; col <= highestModifiedCol; col++) {
sheet.autoSizeColumn(col, true);
}
for (int row = 0; row <= highestModifiedRow; row++) {
autoSizeRow(row);
}
autosizeCols();
autosizeRows();
}

public void autosizeRows() {
Expand Down

0 comments on commit c9fa2bd

Please sign in to comment.