Re: Correct methodology to update browser url with MVP
That is the odd thing, we don't have any code that focuses explicitly, or even manipulates that part of the screen (as checked through the debugger).
Even more strange is that our custom place controller has an effect on the behavior of the list. If we do a security check in "OurPlaceController", which is a REST callback (we do the goTo() call in the callback), the list will actually not show the selected item (it will be scrolled out of view). If we do the goTo() straightaway (no callback), then the item does show up in the view, but is moved to the last position on the screen/list. Again, we have _no_ scrollTo() calls or explicit refresh/reloads, that occur after the goTo().
Even more strange is that our custom place controller has an effect on the behavior of the list. If we do a security check in "OurPlaceController", which is a REST callback (we do the goTo() call in the callback), the list will actually not show the selected item (it will be scrolled out of view). If we do the goTo() straightaway (no callback), then the item does show up in the view, but is moved to the last position on the screen/list. Again, we have _no_ scrollTo() calls or explicit refresh/reloads, that occur after the goTo().
Interestingly, if I put a Window.alert() right after our goTo() (from our activity, not our placecontroller), then I can see the item selected in yellow, it doesn't change to the default blue until after I click the alert okay button. I suspect something is going on there and some race condition with "OurPlaceController" logic.
We've had 3 developers look at this, and have been puzzled by it. This probably isn't a lot to go on, but I suspect it would be very difficult to reproduce with a simple example. Any thoughts appreciated.
On Wed, Jul 10, 2013 at 3:57 AM, Thomas Broyer <t.broyer@gmail.com> wrote:
On Tuesday, July 9, 2013 8:17:41 PM UTC+2, Joel wrote:If its a re-focus effect, what would be the cure?Track its provenance and avoid it (if possible; hard to say without knowing why the CellList is re-focused)On Tue, Jul 9, 2013 at 10:31 AM, Thomas Broyer <t.br...@gmail.com> wrote:
On Tuesday, July 9, 2013 4:48:41 PM UTC+2, Joel wrote:Something odd happens when I use goTo()... The list (a CellList), will scroll so that the selected item is at the bottom of the screen. I have no scrolling code, and I don't understand why goTo() makes this happen. I'm even checking if the item has been selected and not reselecting it.It could be a side-effect of re-focusing the CellList…--To post to this group, send email to google-we...@googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "Google Web Toolkit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/LVwCEAy-o0s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the Google Groups "Google Web Toolkit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/LVwCEAy-o0s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home