Creating a fluid panel in GWT to fill the page?

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

    The problem is that DecoratorPanel middleCenter cell will fill tight on your contents as default, and SplitPanel doesn't allow "100%" style size setting. To do what you want, set the table's style appropriately, on your CSS:

    .gwt-DecoratorPanel .middleCenter { height: 100%; width: 100%; }

提交回复
热议问题