Hi,
I encounter an issue using SmartGWT, v3.0p_2012-02-16, with FF12 and Chromium 17, both in Dev and Prod Mode.
In a DynamicForm, when I combine setWidth("100%") and setTitleColSpan() on a FormItem, the computed width for this FormItem is wrong.
Running this sample, the calculated width for the third item is 690px (100% of the last three columns, including margins I guess) instead of approximately 400px (first three columns dedicated to the title, and the last one to the field).
If I setTitleColSpan(2) instead of 3, the field width will be 296px (100% of columns two and three).
My guess is that the algorithm that calculate the field width ignore the title col span and "assigns" only one column to the title, and the remaining columns to the field.
Thank you,
Stephane
I encounter an issue using SmartGWT, v3.0p_2012-02-16, with FF12 and Chromium 17, both in Dev and Prod Mode.
In a DynamicForm, when I combine setWidth("100%") and setTitleColSpan() on a FormItem, the computed width for this FormItem is wrong.
Code:
final DynamicForm form = new DynamicForm(); form.setWidth(750); form.setNumCols(4); form.setColWidths("50", "100", "200", "400"); final TextItem item1 = new TextItem("item1", "First item"); item1.setWidth("100%"); final TextItem item2 = new TextItem("item2", "Second item"); item2.setWidth("100%"); final TextItem item3 = new TextItem("item3", "Long third title item"); item3.setWidth("100%"); item3.setTitleColSpan(3); form.setFields(item1, item2, item3); form.show();
If I setTitleColSpan(2) instead of 3, the field width will be 296px (100% of columns two and three).
My guess is that the algorithm that calculate the field width ignore the title col span and "assigns" only one column to the title, and the remaining columns to the field.
Thank you,
Stephane
Comment