Wednesday, September 22, 2010

DialogBox & UiBinder - how to get a hidden DialogBox by default?

Hi,

See here a nice example of using DialogBox & UiBinder
http://pastie.org/816302

How can one get the initial DialogBox state to be hidden with a
uiBinder property? Widget code will show it later on some specific
user actions.

As a workaround, in widget constructor I tried
widget = uiBinder.createAndBindUi(this);
Dialog.hide()
but it doesn't work.

If before hide() I introduce
Dialog.center()
it will work, but the dialog (with animation) will flash in center of
screen on widget initialization.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
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.

No comments:

Post a Comment