Bug 52701 - [PATCH] The setVerticalAlignment method don't seem to work for XSLFTableCell
Summary: [PATCH] The setVerticalAlignment method don't seem to work for XSLFTableCell
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: XSLF (show other bugs)
Version: 3.8-dev
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-17 21:57 UTC by Ut Vu Phan
Modified: 2012-02-21 12:41 UTC (History)
0 users



Attachments
SVN Diff created by the "ant -f patch.xml" command (1.21 KB, patch)
2012-02-17 21:58 UTC, Ut Vu Phan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ut Vu Phan 2012-02-17 21:57:20 UTC
The cell vertical alignment is unchanged in the Powerpoint when invoking the method setVerticalAlignment (inherited from XSLFTextShape) from XSLFTableCell.

Exemple : 
   ...
   XSLFTableCell cell = row.addCell();
   cell.setVerticalAlignment(VerticalAlignment.MIDDLE);

After comparing some samples, the conclusion was : for cell, the "anchor" attribute should be changed in table cell properties (tc/tcPr[@anchor]) node not the text body properties node (tc/txBody/bodyPr[@anchor]).
Comment 1 Ut Vu Phan 2012-02-17 21:58:41 UTC
Created attachment 28347 [details]
SVN Diff created by the "ant -f patch.xml" command
Comment 2 Yegor Kozlov 2012-02-21 12:41:10 UTC
Applied in r1291743. 

I also made a symmetrical change in , it should read the value from tc/tcPr[@anchor] too.

Yegor