PDA

View Full Version : [FIXED] MessageBox setMaxWidth/setMinWidth



gslender
10 Sep 2008, 4:16 AM
setMaxWidth/setMinWidth in MessageBox all do nothing (are not used) - work around is to set width of dialog and centre again... ie


MessageBox alert = MessageBox.alert("Some Long Alert", "Another really long line of text that you don't want to wrap to the next line!", null);
alert.getDialog().setWidth(450);
alert.getDialog().center();
would be nice to have this fixed or removed to avoid future confusion ??

darrellmeyer
11 Sep 2008, 7:18 AM
setMinWidth added, setMaxWidth removed. Changes in SVN.

cri1258
23 Jul 2009, 11:06 AM
I'm using GXT 2.0.1 (which is a beautiful thing, btw), and setMinWidth still has no effect for me. Using sven's workaround. Thanks