You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2012/02/17 22:57:20 UTC

DO NOT REPLY [Bug 52701] New: [PATCH] The setVerticalAlignment method don't seem to work for XSLFTableCell

https://issues.apache.org/bugzilla/show_bug.cgi?id=52701

             Bug #: 52701
           Summary: [PATCH] The setVerticalAlignment method don't seem to
                    work for XSLFTableCell
           Product: POI
           Version: 3.8-dev
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSLF
        AssignedTo: dev@poi.apache.org
        ReportedBy: dgen2@hotmail.com
    Classification: Unclassified


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]).

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


DO NOT REPLY [Bug 52701] [PATCH] The setVerticalAlignment method don't seem to work for XSLFTableCell

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52701

--- Comment #1 from Ut Vu Phan <dg...@hotmail.com> 2012-02-17 21:58:41 UTC ---
Created attachment 28347
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28347
SVN Diff created by the "ant -f patch.xml" command

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


DO NOT REPLY [Bug 52701] [PATCH] The setVerticalAlignment method don't seem to work for XSLFTableCell

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52701

Yegor Kozlov <ye...@dinom.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #2 from Yegor Kozlov <ye...@dinom.ru> 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

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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