On 7 oct, 19:37, ivovnenko69 <
ivovne...@gmail.com> wrote:
> Guys, I'm talking about ScrollTable, not ScrollPanel!
Yep, sorry, just noticed...
Workaround attempt (untested):
// Adapt the fully-qualified class names if you're using the gen2
version
class ScrollTableUtils {
private static native Element getDataWrapper(ScrollTable table) /*-
{
return
table.@com.google.gwt.widgetideas.table.client.ScrollTable::dataWrapper;
}-*/;
private static native void scrollTables(ScrollTable table) {
table.@
com.google.gwt.widgetideas.table.client.ScrollTable::scrollTables(Z)
(false);
}
public static void scrollTo(ScrollTable table, int x, int y) {
Element dataWrapper = getDataWrapper(table);
dataWrapper.setScrollLeft(x);
dataWrapper.setScrollTop(y);
scrollTables(table);
}
}
Note that you could also derive ScrollTable to add the above methods
(scrollTables is protected, so you don't have to use JSNI to call it
if you follow this path)