Go Back   MarcomCentral (PTI) and FusionPro User Communities > Software-Related Talk > The JavaScript Library > Formatting Text


Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old August 21st, 2015, 12:05 PM
Ryan_B Ryan_B is offline
Regular Contributor
Join Date: Mar 2015
Location: Kansas City, MO
Posts: 70
Default Horizontal Alignment Formatting Rule

I'm getting some strange behavior from a rule I have written, and I'm wondering if anybody can tell me why.
I have a business card that allows the user to upload a headshot. It is not required, so if the user decides not to upload one, I want to horizontally center align a textframe.
This is the rule I have written to do so:
if(Field("HeadShot") == "")
   return '<p quad=C>' + Rule("RuleNameToUpper");
   return Rule("RuleNameToUpper");
The rule RuleNameToUpper simply puts the Name field in all caps. I then inserted that rule into the textframe that I want to center align.

I've tested it and it works as expected, except for one part. If the user does not upload a headshot, the textframe center aligns, but the font size is decreased. I've tried conditionally setting the font size with:
<z newsize="32">
//this is as big as I can go before getting the "red bar of death" at the bottom of the textframe.
But I can't get it the same size as the font if the user does upload a headshot. Here's the strange part: The font size set for that text frame is 12, and fills the entire height of the text frame.

This is how it looks when the user does not upload a headshot.
This is how it looks when the user does upload a headshot.

I'm not sure how or why when the user does not upload a headshot, the font size decreases. Any ideas for a fix would be greatly appreciated.
Ryan Boever
FusionPro VDP Designer 9.3.36
Adobe Acrobat XI 11.0.07
Windows 10
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -7. The time now is 12:28 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
(c) 2011, PTI Marketing Technologies™, Inc.