|
Re: draw2d.text strange behaviour [message #61526 is a reply to message #61456] |
Mon, 03 February 2003 18:23 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
Thanks, I found the problem in BlockBox. It used to override unionInfo, and
only update its width and height. Now it is updating its x and y locations
too, which was done for centered/right-aligned text.
"Kirill Paliy" <kpaliy@aaanet.ru> wrote in message
news:b1m238$g4$1@rogue.oti.com...
>
> My app creates BlockFlows at runtime, I noticed that first two ones were
> placed correctly, after that appeared some gap between blocks, the more
> blocks the huge gap. I looked at TextExample in draw2d.examples and saw
> similar picture - there are gaps between last blocks. I suspect that this
> happens because ParagraphTextLayout calls context.getCurrentLine and
> indirectly creates new line. This happens in
BlockFlowLayout.layoutChildren
> and this new line height is added to block size each layout call.
>
> --
> WBR Kir
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03252 seconds