https://bz.apache.org/bugzilla/show_bug.cgi?id=58719
Bug ID: 58719
Summary: Horizontal alignment is not rendered correctly in
Safari for IOS
Product: POI
Version: 3.13-FINAL
Hardware: Other
OS: other
Status: NEW
Severity: normal
Priority: P2
Component: XSSF
Assignee: [email protected]
Reporter: [email protected]
Assigning styles which apply horizontal alignment appears correctly in Excel,
but not in Safari for IOS. Test code below produces output which has a left
and right alignment applied to different cells, but they render as left
alignment in both cases when viewed in Safari for IOS:
...
public void test(){
XSSFWorkbook wb = new XSSFWorkbook();
XSSFSheet sheetA = wb.createSheet("sheet_a");
Row row0 = sheetA.createRow(0);
XSSFCellStyle styleA = wb.createCellStyle();
styleA.setAlignment(HorizontalAlignment.LEFT);
XSSFCellStyle styleB = wb.createCellStyle();
styleB.setAlignment(HorizontalAlignment.RIGHT);
Cell cellA0 = row0.createCell(0);
cellA0.setCellStyle(styleA);
cellA0.setCellValue("asdf");
Cell cellB0 = row0.createCell(1);
cellB0.setCellStyle(styleB);
cellB0.setCellValue("qwerty");
try{
FileOutputStream fileOut = new
FileOutputStream("exampleFile.xlsx");
wb.write(fileOut);
fileOut.close();
} catch (IOException ioe){
ioe.printStackTrace();
}
}
...
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]