-
Notifications
You must be signed in to change notification settings - Fork 529
VERTICAL_BOTTOM alignment doesn't work for RichText Shapes. #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Have you got a sample code ? |
something like: $shape = $slide->createRichTextShape()->setWidth(100)->setHeight(100)
->setOffsetX(100)->setOffsetY(100);
$shape->createTextRun('this text should be vertically aligned');
$shape->getActiveParagraph()->getAlignment()
->setHorizontal(PHPPowerPoint_Style_Alignment::HORIZONTAL_LEFT);
$shape->getActiveParagraph()->getAlignment()
->setVertical(PHPPowerPoint_Style_Alignment::VERTICAL_BOTTOM); This doesn't work for VERTICAL_CENTER either. |
Vertical alignment does seem to work for table cells, its only for text shapes that they don't. $horizontalAlign = $firstParagraph->getAlignment()->getVertical();
if ($horizontalAlign != PHPPowerPoint_Style_Alignment::VERTICAL_BASE && $horizontalAlign != PHPPowerPoint_Style_Alignment::VERTICAL_AUTO) {
$objWriter->writeAttribute('anchor', $horizontalAlign);
} |
According to https://phppowerpoint.codeplex.com/workitem/7318 |
@jarredholman Fixed on the develop branch. |
The text is always vertically aligned to the top of the box.
The text was updated successfully, but these errors were encountered: