| 12345678910111213141516171819 |
- package cn.com.goldenwater.dcproj.utils.expExcel;
- /**
- * Created by lhc on 2019-3-18.
- */
- public class MetaUtil {
- /**
- * 默认Grid宽度
- */
- private static int D_GRIDWIDTH = 45;
- public static int getBestwidth(int w, String metaName) {
- if (w == 0) {
- int bw = metaName.length() * 14 + 12;
- return Math.max(bw, D_GRIDWIDTH);
- }
- return w;
- }
- }
|