Thursday, February 27, 2014

Re: Widget's offsetsize is 0

Yes I am also a fan of HeaderPanel and I use it most of the time. However I was replying to "why I can't get the correct info after the event loop with ScheduleDeferred?"

 I have seen this behavior even with a headerPanel but it wasn't a bug but the way broswers work.

Let's I have a headerPanel and I am adding elements in the middle widget on user's input. When I am adding stuff or expanding (display from none to block) elemets I wanted to scroll down to the end of widget. Since browser reflows were rescheduled (evident with firefox 27 debug logs) after the event loop end I was always a little above the bottom of the page. If I was waiting __enough__ for the reflows to finish I could scroll to bottom in a pixel perfect way.

So Is it possible to have a onReflow() event? That would be awesome...

     Vassilis



On Thu, Feb 27, 2014 at 1:01 AM, Jens <jens.nehlmeier@gmail.com> wrote:
Have you tried GWT's HeaderPanel? It also uses a scheduled command but maybe it works better than your solution.

-- J.

--
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.

--
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.

No comments:

Post a Comment