Creating a fluid panel in GWT to fill the page?

前端 未结 8 2169
不思量自难忘°
不思量自难忘° 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:30

    The documentation for DecoratorPanel says:

    If you set the width or height of the DecoratorPanel, you need to set the height and width of the middleCenter cell to 100% so that the middleCenter cell takes up all of the available space. If you do not set the width and height of the DecoratorPanel, it will wrap its contents tightly.

提交回复
热议问题