The Listgrid exceeds its Size. Now the ToolStrip isn't visible and scrolling to the end of the grid doesn't work anymore.
Here's the code for reproducting:
This bug is new in the 3.1d nightly 2012/10/18 (enterprise eval), in 3.1d nightly 2012/10/17 this is still working.
Here's the code for reproducting:
Code:
public void onModuleLoad() {
final ListGrid lg = new ListGrid();
lg.setFields(new ListGridField("f1"));
RecordList data = new RecordList();
for (int i = 0; i < 200; i++) {
final int finalI = i;
data.add(new Record() {{
setAttribute("f1", finalI);
}});
}
lg.setData(data);
ToolStrip strip = new ToolStrip();
strip.addButton(new ToolStripButton("add"));
lg.setGridComponents(ListGridComponent.HEADER, ListGridComponent.BODY, strip);
lg.setHeight("50%");
// lg.setHeight100();
lg.setWidth100();
lg.draw();
}
Comment