MVP scroll position is reset on place change
Hi geeks,
I've got an interesting problem:
I have a long vertical list of widgets. Each widget has assigned click handler, which eventually calls placeController.goTo(). The new place maps to the same activity class, which reuses the same instance of view with the vertical list of widgets.
The problem is that when I do
public void start(AcceptsOneWidget panel, EventBus eventBus) {
panel.setWidget(view.asWidget());
}
in the activity, it resets scroll position of my vertical list to the top, and users has to scroll it down again to find the item they just clicked.
I'm not sure how to easily fix that, because GWT doesn't explicitly resets the scroll position, it just reattaches the view widget to the same parent. Any ideas?
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/zh6D3gMnNYQJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home