https://issues.apache.org/bugzilla/show_bug.cgi?id=43474





--- Comment #14 from Andreas L. Delmelle <[EMAIL PROTECTED]>  2008-11-25 
10:56:12 PST ---
(In reply to comment #11)
> I created a patch working with the latest trunk version. It's similar to the
> last patch. But there were some further problems which are fixed,
> list-item-labels were always wrapped, and the algorithm for choosing the
> correct break position was not correct inside tables. I think this
> functionality is very important for a lot of users as there is even a faq
> entry.
> 

Good to see this being picked up.

I'm in the process of reviewing the patch, and already have some
questions/considerations:
I'm not sure I like the additional reference to ListItemLabel in
TextLayoutManager. The TextLM should deal with text (FOText), and if necessary,
the ancestor ListItemContentLM should pass the necessary info (a flag in the
LayoutContext?) down to prevent the label from being broken. 
Right now, a dev would have to look at the TextLM to find out why a
list-item-label is never broken...? I'd rather see an accompanying change to
the list-related LMs to account for this. I'll see if I can come up with a
polished alternative, to show what I mean.
As to the cause for the fact that the label is always broken: this is probably
because the area gets its inline-progression-dimension from the content, so
when the element-list is first constructed, the reference-ipd (line-width) will
still be zero... I agree that not breaking would be the preferred behavior. If
a user really needs this effect, he/she can always resort to a two-column
table.

The changes to LineLM: Are they necessary due to the changes to TextLM, or is
that a separate issue? Just asking, since the javadoc for the first added
private method seems to indicate that the original expression could return a
wrong result regardless of the value of wrap-option (?)

The same style issues as Chris mentioned in #42374 put aside, your patch has
given me some ideas, which I'll start trying out real soon. 

Thanks for your input so far!


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to