Creating a fluid panel in GWT to fill the page?

前端 未结 8 2163
不思量自难忘°
不思量自难忘° 2021-02-05 09:53

I would like a panel in GWT to fill the page without actually having to set the size. Is there a way to do this? Currently I have the following:

public class M         


        
8条回答
  •  南旧
    南旧 (楼主)
    2021-02-05 10:17

    Panels automatically resize to the smallest visible width. So you must resize every panel you add to the RootPanel to 100% including your SplitPanel. The RootPanel itself does not need resizing. So try:

    split.setWidth("100%");
    split.setHeight("100%");
    

提交回复
热议问题