Skip to main content
Inspiring
Feb 9, 2009 9:53 PM UTC
Answered

Linked Containers- ability to avoid orphaned text lines

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