2010-07-06 37 views

回答

8

可以使用setWidgetSize方法是这样的:

DockLayoutPanel panel = new DockLayoutPanel(Style.Unit.EM); 

HTML html = new HTML("south"); 
panel.addSouth(html, 2); 

// change the size of the html widget to 4em 
panel.setWidgetSize(html, 4);