Bug 52701

Summary: [PATCH] The setVerticalAlignment method don't seem to work for XSLFTableCell
Product: POI Reporter: Ut Vu Phan <dgen2>
Component: XSLFAssignee: POI Developers List <dev>
Severity: normal    
Priority: P2    
Version: 3.8-dev   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Attachments: SVN Diff created by the "ant -f patch.xml" command

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();

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.