Hi there,
i've got a little issue with a textwithlinks component inside a grid.
If I am placing it directly into a grid column, all works fine.
If the text is quite big (bigger than the height of the row), the content will be cut.
So I placed the textwithlinks inside a scrollpane and that scrollpane in to the grid. Now for big texts it works fine: There is a scrollbar.
But small text, which won't need a scrollbar, are displayed as very thin line (see Screenshots).
Setup of the column:
Code:
SCROLLPANENode scrollPane = new SCROLLPANENode().setWidth("100%").setHeight("100%");
ROWNode row = new ROWNode();
TEXTWITHLINKSNode field = new TEXTWITHLINKSNode()
.setText(getValueBinding())
.setWidth("100%")
.setFont("size:11;family:Tahoma")
.setBgpaint(bgPaintBinding);
row.addSubNode(field);
scrollPane.addSubNode(row);
All fine without the scrollpane - expect for long content.