Skip to main content
Inspiring
February 9, 2009
Answered

Linked Containers- ability to avoid orphaned text lines

  • February 9, 2009
  • 1 reply
  • 354 views
Once again visiting the Pagination example.... Is there any elegant way to avoid having orphaned lines from spilling over to the next container. I would love to be able to indicate that a paragraph should always have at least two lines in a single container, or some other solution that is similar... maybe an attribute on a paragraph or span that indicates, "keepLinesTogehter".

I realize that I could do some sort of calculation on the number of textlines after a container is updated, and then essentially modify the paragraphs to have line breaks to force an adjustment, but this seems like a real hack.

Any info is greatly appreaciated, and a solution would simply make my day.
Thanks,
Tim
Anything?
This topic has been closed for replies.
Correct answer robin_briggs
I'm afraid that for now you are left with the real hack. I think this would be a good feature, but its not trivial, especially in an environment that supports editing.

1 reply

robin_briggsCorrect answer
Adobe Employee
February 15, 2009
I'm afraid that for now you are left with the real hack. I think this would be a good feature, but its not trivial, especially in an environment that supports editing.