<changes>
<release version="3.8-beta4" date="2011-??-??">
+ <action dev="poi-developers" type="add">51356 - Support autoSizeColumn in SXSSF</action>
<action dev="poi-developers" type="add">51335 - Parse picture goal and crop sizes in HWPF</action>
<action dev="poi-developers" type="add">51305 - Add sprmTCellPaddingDefault support in HWPF</action>
<action dev="poi-developers" type="add">51265 - Enhanced Handling of Picture Parts in XWPF</action>
import org.apache.poi.ss.usermodel.*;
import org.apache.poi.ss.util.CellReference;
+import org.apache.poi.ss.util.SheetUtil;
import org.apache.poi.xssf.usermodel.XSSFSheet;
import org.apache.poi.hssf.util.PaneInformation;
*/
public void autoSizeColumn(int column)
{
- _sh.autoSizeColumn(column);
+ autoSizeColumn(column, false);
}
/**
*/
public void autoSizeColumn(int column, boolean useMergedCells)
{
- _sh.autoSizeColumn(column, useMergedCells);
+ double width = SheetUtil.getColumnWidth(this, column, useMergedCells);
+ if(width != -1){
+ setColumnWidth(column, (int)(width*256));
+ }
}
/**