| Tree node text doesn't use full cell width [message #911956] |
Wed, 12 September 2012 12:46  |
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))));
}
|
|
|
|
Powered by
FUDForum. Page generated in 0.01409 seconds