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 Hochstein
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 Fauth
Messages: 1339
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:Drag in NatTable
Next Topic:Can't indent tree column of TreeLayer
Goto Forum:
  


Current Time: Sat Oct 25 23:43:21 GMT 2014

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

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