I would like to report a problem with width of form items that was set to "*".
When you use colspan, width of an item is shorter than it should be. Cellpadding is not considered.
Example:
When you change:
Width of TextItem is OK.
Best regards
Mariusz Goch
When you use colspan, width of an item is shorter than it should be. Cellpadding is not considered.
Example:
Code:
DynamicForm form = new DynamicForm();
form.setCellPadding(4);
form.setNumCols(4);
form.setColWidths(80, "*", 100, 150);
TextItem item1 = new TextItem("item1");
item1.setWidth("*");
item1.setEndRow(false);
ButtonItem button = new ButtonItem();
button.setWidth(100);
button.setHeight(24);
button.setStartRow(false);
TextItem item2 = new TextItem("item2");
item2.setWidth("*");
item2.setColSpan(2);
form.setFields(item1, button, item2);
Code:
form.setCellPadding(0);
Best regards
Mariusz Goch
Comment