|
@@ -147,9 +147,9 @@ public class ExportExcelUtils {
|
|
|
sheet.autoSizeColumn(i, true);
|
|
sheet.autoSizeColumn(i, true);
|
|
|
int newWidth = (int) (sheet.getColumnWidth(i) + 100);
|
|
int newWidth = (int) (sheet.getColumnWidth(i) + 100);
|
|
|
if (newWidth > orgWidth) {
|
|
if (newWidth > orgWidth) {
|
|
|
- sheet.setColumnWidth(i, newWidth);
|
|
|
|
|
|
|
+ sheet.setColumnWidth(i, Math.min(newWidth, 255));
|
|
|
} else {
|
|
} else {
|
|
|
- sheet.setColumnWidth(i, orgWidth);
|
|
|
|
|
|
|
+ sheet.setColumnWidth(i, Math.min(orgWidth, 255));
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|