Skip to main content
Participating Frequently
November 20, 2009
解決済み

paddingLeft within a TextFlow

  • November 20, 2009
  • 返信数 1.
  • 510 ビュー

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.

このトピックへの返信は締め切られました。
解決に役立った回答 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

robin_briggs解決!
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.

joshuajnoble作成者
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.