GWT DialogBox - a problem with the dimensions when turning on the animation

GWT Client Code:

DialogBox dialog = new DialogBox(); dialog.setAnimationEnabled(true); SimplePanel panel = new SimplePanel(); panel.setPixelSize(800, 600); dialog.setWidget(panel); dialog.center(); 

with the above code, the dialog width is not set properly - the dialog is cropped by about 400 px.

Without turning on the animation, it works fine, as in the code snippet below:

 DialogBox dialog = new DialogBox(); SimplePanel panel = new SimplePanel(); panel.setPixelSize(800, 600); dialog.setWidget(panel); dialog.center(); 

GWT ver 2.04
Firefox: 3.6.9
Chrome: 6.0.472.55 beta p>

Any ideas what could be the problem?

+6
gwt
source share
1 answer
+6
source share

All Articles