Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » draw2d.text strange behaviour
draw2d.text strange behaviour [message #61456] Mon, 03 February 2003 15:52 Go to next message
Kirill Paliy is currently offline Kirill PaliyFriend
Messages: 25
Registered: July 2009
Junior Member
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
Re: draw2d.text strange behaviour [message #61526 is a reply to message #61456] Mon, 03 February 2003 18:23 Go to previous message
Eclipse UserFriend
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
>
>
Previous Topic:View & Toolbar
Next Topic:Rotate a Label
Goto Forum:
  


Current Time: Thu Jun 27 20:36:44 GMT 2024

Powered by FUDForum. Page generated in 0.02463 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top