On 7 oct, 19:37, ivovnenko69 <[EMAIL PROTECTED]> 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
[EMAIL PROTECTED]::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)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---