I'm trying last nightly build of smartgwt 4.0p from 2013-11-05. If I have ListGrid scrolled to specific row and call focus() on it, the body of the listgrid crolls to the first row. Tested in last versions of FF and Chrome and IE10. Here is example:
	The previos build that I used (4.0p_20130905) works correctly.
Thanks.
Pavel
					Code:
	
	final ListGrid lg = new ListGrid();
lg.setSelectionType(SelectionStyle.NONE);
lg.setWidth(300);
lg.setHeight(100);
ListGridField f1 = new ListGridField("f1");
ListGridField f2 = new ListGridField("f2");
ListGridField f3 = new ListGridField("f3");
lg.setFields(f1, f2, f3);
ListGridRecord data[] = new ListGridRecord[100];
for (int i = 0; i < 100; i++) {
	data[i] = new ListGridRecord();
	data[i].setAttribute("f1", "f1 - " + i);
	data[i].setAttribute("f2", "f2 - " + i);
	data[i].setAttribute("f3", "f3 - " + i);
}
lg.setData(data);
lg.addDrawHandler(new DrawHandler() {
	
	@Override
	public void onDraw(DrawEvent event) {
		lg.scrollToRow(30);
		lg.focus();
	}
});
lg.draw();
Thanks.
Pavel

Comment