[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.gef] draw2d.text strange behaviour

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