Skip to main content
Participating Frequently
Nov 20, 2009 5:52 PM UTC
Answered

paddingLeft within a TextFlow

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 is closed to new replies. Start a new post to keep the conversation going.
robin_briggsCorrect answer
Adobe Employee
Nov 23, 2009 5:59 AM UTC

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.

3 replies

robin_briggsCorrect answer
Adobe Employee
Nov 23, 2009 5:59 AM UTC

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.

Translate
Participating Frequently
Nov 24, 2009 5:23 PM UTC

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

Translate
Adobe Employee
Nov 24, 2009 10:30 PM UTC

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

Translate