Animating DockLayoutPanel widget size change

455 views
Skip to first unread message

Shaun Tarves

unread,
Jul 25, 2012, 2:40:36 PM7/25/12
to google-we...@googlegroups.com
Hi -

Is there any way to animate the setting of a widget size within the DockLayoutPanel? For example, when hiding display regions, it's typical to set a particular region of the DockLayoutPanel to null, or set its size to 0.

I would like to animate the "reappearance" or "disappearance" of a widget within the DockLayoutPanel, but can't seem to figure out how.

Any ideas?

Thomas Broyer

unread,
Jul 25, 2012, 2:58:29 PM7/25/12
to google-we...@googlegroups.com
It should be as easy as calling the animate() method.

Actually, all layout changes are queued and processed by a Scheduler#scheduleFinally command. animate() will change the behavior of that command to animate the layout changes.

Shaun Tarves

unread,
Jul 25, 2012, 3:17:12 PM7/25/12
to google-we...@googlegroups.com
Well, that was easy. I hadn't tried that, assuming DockLayoutPanel.setWidgetSize() was happening immediately.

Thanks.

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

To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Reply all
Reply to author
Forward
0 new messages