6
是否有人知道如何調整GWT DockLayoutPanel的子面板的大小?當我添加一個定向平板我得給它一個尺寸,即:調整GWT DockLayoutPanel的North/South/East/West組件
panel.addSouth(new HTML("south"), 2);
我怎麼能那麼調整後的事實這個南方面板?
是否有人知道如何調整GWT DockLayoutPanel的子面板的大小?當我添加一個定向平板我得給它一個尺寸,即:調整GWT DockLayoutPanel的North/South/East/West組件
panel.addSouth(new HTML("south"), 2);
我怎麼能那麼調整後的事實這個南方面板?
可以使用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);