Skip to main content
August 26, 2009
Question

certain styles, links not working for me in textflow

  • August 26, 2009
  • 2 replies
  • 637 views

I am building a reader app using the text layout and text flow, but I am having difficulty setting certain styles ('formats') on paragraphs, particularly related to padding and margins. If I take the tlf markup I create and import it into the adobe labs rich text editor, all is well. This leads me to suspect that there is a problem with how I/we are implementing the text flow renderer/controller.

Note some styles do work, such as indenting, bold, font, etc.

Anyone seen this behavior and have a possible cause/solution?

Thx,

d

This topic has been closed for replies.

2 replies

August 27, 2009

Hi,

I actaully figured the solution out on my own soon before your post. I was wondering why the posted adobe rich text edtor example seemed to support the marginLeft(Right, etc) tags while our app did not. It must be using a 'special' version of the text layout API/SDK. My mother always told me it is always best to share your toys.

d

Adobe Employee
August 27, 2009

The margin attributes were removed intentionally because they weren't implemented correctly.  The paragraph* attrbiutes were added after some research as a replacement.  It's nice that they inherit unlike padding or margins.  The margin tags may come back - they need to play nice with padding and borders - but it won't be in this release.

The only thing special about the posted example is that its way out of date.

Richard

Adobe Employee
August 27, 2009

Assuming you are using fairly recent sources padding attributes do not have any effect when set on paragraphs.   Instead use paragraphSpaceBefore, paragraphSpaceAfter, paragraphStartIndent and paragraphEndIndent.  Padding only applies to containers at this time.  The atual padding on the container is the sum of the TextFlow and the ContainerController padding properties.

Hope that helps,

Richard