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:

enter image description here


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -