Great, the setWidgetHidden() works exactly as what I was looking for.

Just for reference, one have to call it in the following order to make the 
animation visible:
dock.setWidgetHidden(inputPanel);
dock.setWidgetSize(inputPanel, 0);
dock.animate(3000);


Am Dienstag, 26. Februar 2013 12:03:20 UTC+1 schrieb Thomas Broyer:
>
> If you want to animate, you have to resize the north panel to 0, rather 
> than remove it (you can remove the widget at the end of the animation 
> though, but adding back a widget isn't that easy after you added the center 
> panel, better make it invisible with setWidgetHidden):
>
>    dock.setWidgetSize(inputPanel, 0);
>    doc.animate(3000);
>
> On Tuesday, February 26, 2013 11:46:51 AM UTC+1, membersound wrote:
>>
>> Oh and not to forget: I also want to animate this.
>>
>> Atm I'm just passing the widget that is inside the <g:north> tag to be 
>> removed from the dock, like:
>>
>>         dock.animate(3000);
>>         dock.setVisible(false);
>> //      dock.remove(inputPanel);
>>
>> Anyhow none of these shows an animation, so probably I'm doing things 
>> wrong?
>> Further, how can I force the rest of the page take the free space up if I 
>> clear this particular dock element?
>>
>

-- 
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+unsubscr...@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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to