Hi,

I have a simple FormPanel height of which should be determined automatically.
However, my FormPanel has about 1 px of height, if setHeight is not used.
If I use setHeight(150), the height will be set to 150, but does not change after I collapse elements inside. setAutoHeight makes things even worse or is ignored completely.

Code:
    public void x(){
        
        ContentPanel top = new ContentPanel();
        top.setLayout(new RowLayout(Orientation.HORIZONTAL));
        top.setHeaderVisible(false);
        top.setWidth(500);
        //top.setAutoHeight(true);
        top.setHeight(150);
        
        FieldSet left = new  FieldSet();
        left.setHeight(100);
        left.setWidth(100);
        left.setCollapsible(true);
        
        FieldSet right = new FieldSet();  
        right.setHeight(200);
        right.setWidth(100);
        right.setCollapsible(true);
        right.collapse();
        
        top.add(left);
        top.add(right);
        
        RootPanel.get("application").add(top);
        
    }
Could You please help me?

Thankx,

mm