GridLayout is not resizing on IE7

I am having this problem when using IE7 (Vaadin 6.8.1):

GridLayout resizes when the first component is added, but when adding other component it is not resizing anymore. Same problem is with unhiding - if both components are hidden, and then first component is shown - grid resizes, but it does not resize when the second component is shown. It happens on Internet Explorer 7 (other browsers work as expected).

It looks like a bug for me, but maybe I am doing something wrong. If anyone has suggestions, it would be very helpful to hear it.

This problem can be reproduced using this code:

public class VaadintestApplication extends Application {

	private GridLayout grid;
	
	@Override
	public void init() {
		Window mainWindow = new Window("TEST");
		
		grid = new GridLayout(2,1);
		
		Button button1 = new Button("Add first component");
		button1.addListener(new Button.ClickListener() {
			@Override
			public void buttonClick(ClickEvent event) {
				grid.addComponent(new Button("TEST"));
			}
		});
		
		Button button2 = new Button("Add second component");
		button2.addListener(new Button.ClickListener() {
			@Override
			public void buttonClick(ClickEvent event) {
				grid.addComponent(new Button("TEST TEST"));
			}
		});
		
		HorizontalLayout hl = new HorizontalLayout();
		hl.addComponent(grid);
		hl.addComponent(button1);
		hl.addComponent(button2);
		
		mainWindow.setContent(hl);
		setMainWindow(mainWindow);
	}
}

12460.jpg
12461.jpg