PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » File Formats » Spreadsheet_Excel_Writer » Bug #2480

Align Seperation - V + H

Details

Request #2480Align Seperation - V + H
Submitted2004-10-08 05:35 UTC
Fromderrickbtan dot lists at gmail dot com
Assignedxnoguer
StatusClosed
PackageSpreadsheet_Excel_Writer
PHP Version5.0.2
OSWindows 2000
Roadmaps(Not assigned)

Comments

[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').

[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')