Hi
I have problem with resizing ListGrid. When I resize browser's window or Window element, ListGrid is getting bugged.
Here is simplified example to see this bug:
I attached 2 images to show how page looks after refresh and how it looks bugged after resizing. The thing is ListGrid size is equal to window's size, but after resizing ListGrid's content is smaller and there are scroll bars visible. Scrollbars are bugged too. Try resizing columns.
I figured out that this problem occurs only when when columns widths are set e.g. 200. When I set column width to "*" there is no bug.
I am using SmartGWT 3.0 and FF 5.0 (or IE 8.0).
There is no Exception.
Please help,
Adam
I have problem with resizing ListGrid. When I resize browser's window or Window element, ListGrid is getting bugged.
Here is simplified example to see this bug:
Code:
import com.google.gwt.core.client.EntryPoint; import com.smartgwt.client.widgets.grid.ListGrid; import com.smartgwt.client.widgets.grid.ListGridField; import com.smartgwt.client.widgets.grid.ListGridRecord; public class MainEntryPoint implements EntryPoint { public void onModuleLoad() { ListGridRecord[] records = new ListGridRecord[20]; for (int i = 0; i < records.length; i++) { records[i] = new ListGridRecord(); records[i].setAttribute("a", "a" + i); records[i].setAttribute("b", "b" + i); } ListGrid grid = new ListGrid(); grid.setFields(new ListGridField[]{new ListGridField("a", "a", 250), new ListGridField("b", "b", 250)}); grid.setData(records); grid.setWidth100(); grid.setHeight100(); grid.draw(); } }
I figured out that this problem occurs only when when columns widths are set e.g. 200. When I set column width to "*" there is no bug.
I am using SmartGWT 3.0 and FF 5.0 (or IE 8.0).
There is no Exception.
Please help,
Adam
Comment