From: "J.Pietschmann" <[EMAIL PROTECTED]>

Chris Bowditch wrote:
Centering seems to be off by just one character.

Well, the errorneously unstripped space...

Yes I was agreeing with you here.



text justification

combination of LineLayoutManager.getNextBreakPoss and LineLayoutManager.makeLineBreak

Close but no cigar. In getNextBreakPoss, the code handles lines which are last lines or end in forced line breaks, which must not be justified (well, handling of text-align-last seems to be missing...)

Thats okay - I dont smoke :-)



In makeLineBreak, the space for justification is computed (dAdjust) and then passed to the new LineBreakPosition. Somehow, somewhere there must be leader expansion, space-start and -end adjustment and resizing of resizable spaces. It should be called from the renderer just before rendering, because of expansion of forward references, but I haven't found it. I somehow guess the code just doesn't exist, which would neatly explain why text-align+"justify" hasn't any effect....


Great - another little layout problem for me to have some fun with.


Chris

_________________________________________________________________
Find a cheaper internet access deal - choose one to suit you. http://www.msn.co.uk/internetaccess




Reply via email to