Paint problem with two level column groups and custom cell painters [message #1025286] |
Tue, 26 March 2013 10:27 |
Andreas Glauner Messages: 5 Registered: March 2013 |
Junior Member |
|
|
Hi,
I am experiencing some unwanted behavior when using two level column groups along with custom cell painters for the column (group) headers.
Using the _001_Two_level_column_groups example as a basis, I added custom painters to the column header and column header group regions:
final PaddingDecorator paddedTextPainter = new PaddingDecorator(new TextPainter(), 5, 10, 5, 5);
final ICellPainter colHeaderPainter = new BeveledBorderDecorator(paddedTextPainter);
configRegistry.registerConfigAttribute(CellConfigAttributes.CELL_PAINTER, colHeaderPainter,DisplayMode.NORMAL, GridRegion.COLUMN_GROUP_HEADER);
configRegistry.registerConfigAttribute(CellConfigAttributes.CELL_PAINTER, colHeaderPainter,DisplayMode.NORMAL, GridRegion.COLUMN_HEADER);
The resulting table does not resize the column header rows (for headers with two groups) properly and cuts off the bottom of the text.
Is there anything wrong about this approach or is this a NatTable issue?
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03607 seconds