SmartGWT v8.2p_2013-02-06/LGPL Development Only (built 2013-02-06)
Using IE9, tried in dev and regular mode
I have a list grid inside of a Tab (which, obviously, is inside of a TabSet). I would like to require a minimum size on the grid, but allow it to grow if there's extra room in the Tab's pane. Setting setMinHeight and setDefaultHeight do not work. However, manually specifying a height resizes the grid to that height and displays scrollbars in the Tab's pane, as expected. I would expect similar behavior for the two other functions when used together.
Here's a standalone test case that shows what I am seeing.
	
							
						
					Using IE9, tried in dev and regular mode
I have a list grid inside of a Tab (which, obviously, is inside of a TabSet). I would like to require a minimum size on the grid, but allow it to grow if there's extra room in the Tab's pane. Setting setMinHeight and setDefaultHeight do not work. However, manually specifying a height resizes the grid to that height and displays scrollbars in the Tab's pane, as expected. I would expect similar behavior for the two other functions when used together.
Here's a standalone test case that shows what I am seeing.
Code:
	
	import com.google.gwt.core.client.EntryPoint;
import com.smartgwt.client.widgets.grid.ListGrid;
import com.smartgwt.client.widgets.tab.Tab;
import com.smartgwt.client.widgets.tab.TabSet;
public class MinHeightTest implements EntryPoint
{
    @Override
    public void onModuleLoad()
    {
        TabSet tabSet = new TabSet();
        tabSet.setWidth(500);
        Tab tab = new Tab("MyTab");
        ListGrid listGrid = new ListGrid();
        listGrid.setWidth(300);
        // WORKS!
        // listGrid.setHeight(650);
        // DOES NOT WORK...
        listGrid.setDefaultHeight(650);
        listGrid.setMinHeight(650);
        tab.setPane(listGrid);
        tabSet.addTab(tab);
        tabSet.draw();
    }
}
Comment