SmartGWT Dialog setting Height for dynamix text -
here's deal, im trying create popup window uses dynamic text, when text large cap height of window , use scrollbar instead navigate through not seems working.
code:
final dialog dialog = new dialog(); dialog.setmessage(direttivadescription); dialog.setoverflow(overflow.auto); dialog.setwidth(600); dialog.setheight(50); dialog.seticon(someicon); dialog.setbuttons(new button("ok")); dialog.addbuttonclickhandler(new buttonclickhandler() { public void onbuttonclick(buttonclickevent event) { dialog.hide(); } }); dialog.draw();
if text large window height resized accordingly. funny part setwidth method seems working fine.
you need container such hlayout
, vlayout
, dynamicform
etc. can add message in add container in dialog
.
sample code:
vlayout vlayout=new vlayout(); vlayout.addmember(new label(message)); vlayout.setoverflow(overflow.auto); vlayout.setwidth100(); ... dialog.additem(vlayout); dialog.draw();
snapshot:
Comments
Post a Comment