Skip to main content
Participating Frequently
November 20, 2009
Answered

paddingLeft within a TextFlow

  • November 20, 2009
  • 1 reply
  • 506 views

I'm a little confused how the paddingleft, right, bottom, and top properties are supposed to be behave in a TextFlow. For instance, in the following, the only way to actually apply the padding left seems to be to apply the style to the TextFlow itself.

var tf:TextFlow = new TextFlow(null);
var p:ParagraphElement = new ParagraphElement();

var link:LinkElement = new LinkElement();
link.href = "http://www.adobe.com";
               
var linkSpan:SpanElement = new SpanElement();
linkSpan.text = "Some Text";
linkSpan.paddingLeft = 20;
link.paddingLeft = 20;

link.addChild(linkSpan);
               
p.addChild(link);
p.paddingLeft = 20;

//tf.paddingLeft = 20; // this sets the padding
tf.addChild(p);

Am I missing something? Thanks for any help.

This topic has been closed for replies.
Correct answer robin_briggs

You're not missing anything. The padding properties only work on the TextFlow and the controllers. You can apply them to other elements, but padding properties on other elements are ignored in our 1.0 release.

1 reply

robin_briggsCorrect answer
Adobe Employee
November 23, 2009

You're not missing anything. The padding properties only work on the TextFlow and the controllers. You can apply them to other elements, but padding properties on other elements are ignored in our 1.0 release.

Participating Frequently
November 24, 2009

That's what I was afraid of. Just out of curiousity, is there any timeline for that getting added? Thanks!

Adobe Employee
November 24, 2009

Not yet, sorry. This is definitely an important feature, but we don't have a schedule for it yet.