|
|
|
|
|
Re: row resizing according to text inside [message #1017374 is a reply to message #1017353] |
Mon, 11 March 2013 17:44 |
|
Hi,
I found the AutomaticRowHeightTextPainter and the Example in the GIT repository. But the problem with this implementation is, that it works only, if the table has exactly one column. The problem is, that the painter is called 'per cell' and while painting it has no idea about the text (and thus about the height) of other cells of the same row. So, if you add another row to the example, the Table is resizing back and forth: Painter of cell (X,Y) might increase the cell- (an thus row-) height, since the text does not fit in the column, whereas the painter of column (X+1, Y) decreases the row height, since it finds, it has to much space. This triggers a repaint, where the painter of (X,Y) again increases the cell-heigh...
Any idea how to solve this?
Regards, Ralf
|
|
|
|
Re: row resizing according to text inside [message #1017654 is a reply to message #1017607] |
Tue, 12 March 2013 09:16 |
|
Hi,
I'm aware that such a painter you describe might not follow all NatTable tenets. But our table has a 'row orientation' and one of the requirements is that rows should shrink if more space becomes available.
Do you still have a version of your painter? It would help me a lot, if i could use it as a 'blue print' for my own cell painter, since I'm pretty new to the whole NatTable business.
Thanks a lot,
Ralf
|
|
|
|
Powered by
FUDForum. Page generated in 0.04942 seconds