Standards mode. Things had been working well, but I'm trying to show
a DialogBox, and it's not working AT ALL.
1: The frame of the dialog box does not show up.
2: When I tell it "Glass enabled", it does it for the entire web page,
not for the dialog box.
3: The Dialog text all appears just overlaid on the rest of my page.
4: My close box doesn't appear anywhere, and as the dialog seems to
have taken over the entire page, I can't click outside of it
anywhere. So it never goes away.
The relevant part of my code. This all worked just fine under 2.0.4:
final DialogBox dialogBox = new DialogBox ();
dialogBox.setAnimationEnabled (true);
dialogBox.setGlassEnabled (true);
dialogBox.setText ("SeattleSeq Information");
dialogBox.setStylePrimaryName ("exome-DialogBox");
dialogBox.setStyleName ("exome-DialogBox");
final Button closeButton = new Button ("Close");
closeButton.getElement ().setId ("closeButton");
VerticalPanel dialogVPanel = buildDialogPanel (); // The panel
displays where the dialog should be, so this is working
dialogVPanel.setHorizontalAlignment (VerticalPanel.ALIGN_RIGHT);
dialogVPanel.add (closeButton);
dialogBox.setWidget (dialogVPanel);
// Add a handler to close the DialogBox
closeButton.addClickHandler (new ClickHandler () {
@Override
public void onClick (final ClickEvent event)
{
dialogBox.hide ();
}
});
// Make sure it displays properly
dialogBox.center ();
dialogBox.show ();
Any help would be greatly appreciated.
--
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