Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Tree node text doesn't use full cell width
Tree node text doesn't use full cell width [message #911956] Wed, 12 September 2012 16:46 Go to next message
Tom Hochstein is currently offline Tom HochsteinFriend
Messages: 12
Registered: July 2009
Junior Member
The algorithm for handling too-wide text is not working properly, hiding text much too soon and leaving a large empty space on the right-hand side of the cell. This is easily seen with TreeGridExample.

It appears that the indent on the left-hand side is incorrectly affecting the available space calculation in AbstractTextPainter.getTextToDisplay():

else if (!calculate && !wrapText) {
output.append(modifyTextToDisplay(text, gc, availableLength - (calculatePadding(cell, availableLength) + (2*spacing))));
Re: Tree node text doesn't use full cell width [message #912241 is a reply to message #911956] Thu, 13 September 2012 07:34 Go to previous message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2772
Registered: July 2012
Senior Member
I created a bug for this.

In short, the bounds the AbstractTextPainter is called with are not correct.
Previous Topic:setBackgroundColor for tooltips
Next Topic:Can't indent tree column of TreeLayer
Goto Forum:

Current Time: Sun Jan 26 12:47:37 GMT 2020

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

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

Back to the top