Accordion field, height [message #1857904] |
Sun, 05 March 2023 07:15  |
Eclipse User |
|
|
|
Hello,
What is best way to show fields in accordion group, for example TableField.
If I add TableField inside AbstractGroup formData of tableField is removed.
So I create TableField outside MainBox and setBody of AbstractGroup like:
setBody(new MyTableField()) ;
And when this is rendered, TableField is not show correctly, height is too small.
I can see only one row of table.
Even if I set height on TableField.
|
|
|
Re: Accordion field, height [message #1858142 is a reply to message #1857904] |
Fri, 17 March 2023 04:04  |
Eclipse User |
|
|
|
Hi,
A group is always as height as its content wants to be. Since a group does not use the logical grid layout, setting grid properties on the table field won't have any effect. Have you tried adding some rows? The table (and hence the group) should get bigger the more rows you add.
You can use inner classes to create the group and the table as you would do within a group box. But you can also create them outside as you tried, both should work.
If want want the table to be bigger without rows you could try using CSS and setting a min-height. Or you could wrap the TableField in a GroupBox. Because a GroupBox uses the logical grid, you should be able to use the grid properties of the TableField.
|
|
|
Powered by
FUDForum. Page generated in 0.04240 seconds