poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 58719] New: Horizontal alignment is not rendered correctly in Safari for IOS
Date Fri, 11 Dec 2015 04:44:26 GMT
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: dev@poi.apache.org
          Reporter: jwhang@tibco.com

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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message