|
@@ -21,6 +21,7 @@ import org.apache.commons.codec.Charsets;
|
|
|
import org.apache.commons.lang.ArrayUtils;
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
import org.apache.commons.lang3.ObjectUtils;
|
|
|
+import org.apache.poi.ss.usermodel.CellStyle;
|
|
|
import org.jsoup.Jsoup;
|
|
|
import org.jsoup.nodes.Document;
|
|
|
import org.jsoup.nodes.Element;
|
|
@@ -1857,8 +1858,13 @@ public class ExcelTabController extends BladeController {
|
|
|
CellRange cellRange = columns[i];
|
|
|
System.out.println(cellRange.getStyle().getFont().getSize());
|
|
|
if (cellRange.getStyle().getFont().getSize() >= 12) {
|
|
|
+ String title = projectInfo.getProjectName();
|
|
|
+ if (title.length() >= 30) {
|
|
|
+ cellRange.setRowHeight(40);
|
|
|
+ cellRange.getStyle().setWrapText(true);
|
|
|
+ }
|
|
|
+ cellRange.getStyle().getFont().setSize(18);
|
|
|
cellRange.setText(projectInfo.getProjectName());
|
|
|
- cellRange.getStyle().getFont().setSize(20);
|
|
|
break;
|
|
|
}
|
|
|
}
|