Tree area not expanding horizontally in IE7

Hi.

I have tree component with setSizeUndifined. The tree area should shrink and increase with the size of visible tree items when expanding and collapsing tree nodes. It works fine with FireFox, Crome and IE8 but not in IE7. In IE7 the tree area shrinks like it should but doesn’t increase again. I found same feature in Vaadin samplers Application-style layout window example. The tree shrinks when collapsing tree nodes, but doesn’t increase when expanding them again. Only browser refresh makes the tree expanding again.

In my application the tree is inside the panel to make scrolling. Debug window shows that not increasing component is vertical layout inside the panel. I’ve tried to set panel.getContent().setSizeUndefined(). If I setSizeFull() or setWith(“100%”) expanding problem doesn’t exist but I’ll loose horizontal scroll feature witch is not desirable.

This is my test app:


		GridLayout root = new GridLayout(1,1);
		root.setWidth(10, GridLayout.UNITS_PICAS);
		root.setHeight(10, GridLayout.UNITS_PICAS);

		Panel panel = new Panel();
		panel.setSizeFull();
		panel.setScrollable(true);
		panel.getContent().setSizeUndefined();
		root.addComponent(panel, 0, 0);
		
		HierarchicalContainer hc = new HierarchicalContainer();
		hc.addItem("root1");
		hc.addItem("child1_1");
		hc.addItem("child1_2");
		hc.addItem("child1_3");
		hc.setParent("child1_1", "root1");
		hc.setParent("child1_2", "root1");
		hc.setParent("child1_3", "root1");
		hc.addItem("root2");
		hc.addItem("child2_1");
		hc.addItem("child2_2 some long text to make horizontal scroll");
		hc.setParent("child2_1", "root2");
		hc.setParent("child2_2 some long text to make horizontal scroll", "root2");
		hc.addItem("root3");
		
		Tree tree = new Tree();
		tree.setSizeUndefined();
		tree.setContainerDataSource(hc);
		panel.addComponent(tree);

Is there simple work around or explanation for this or should I report a bug?

This looks like a bug to me, created a ticket
#6230
about it.