Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.9.4

Request #2480 Align Seperation - V + H
Submitted: 2004-10-08 05:35 UTC
From: derrickbtan dot lists at gmail dot com Assigned: xnoguer
Status: Closed Package: Spreadsheet_Excel_Writer
PHP Version: 5.0.2 OS: Windows 2000
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 35 - 3 = ?

 
 [2004-10-08 05:35 UTC] derrickbtan dot lists at gmail dot com
Description: ------------ Simple request. . . setAlign accepts both horizontal and vertical alignment. When using an array to add a format, only 1 can be set because of the propertyname method invocation (and the associative array). Perhaps it would be better to add 2 new functions. setHAlign and setVAlign. Therefore, when adding a format one could do: addFormat( array( 'vAlign' = "vcenter", 'hAlign' = 'right' ) ) etc. . . Currently one must use array ( 'align' = 'vcenter' ). then do $format->setAlign('right').

Comments

 [2005-11-09 00:31 UTC] xnoguer at php dot net
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. new methods setHAlign() and setVAlign() have been added to cvs. You can use them with the addFormat constructor also: addFormat(array('vAlign' => "vcenter", 'hAlign' => 'right')