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
Eclipse UserFriend
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: 2902
Registered: July 2012
Senior Member
I created a bug for this.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=389474

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: Fri Apr 26 00:55:28 GMT 2024

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

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

Back to the top