Strange behavior of a tree

Hi all,
I have a very simple application with one tree element


public class MyApplication extends com.vaadin.Application
{
   public void init()
   {
      buildMyApp();
   }

   private void buildMyApp()
   {
      setMainWindow(new Window("Hello window 111"));
      getMainWindow().setContent(new VerticalLayout());
      
      Tree tree = new Tree();
      tree.setImmediate(true);
      tree.addItem("1");
      tree.addItem("2");

      tree.addItem("1.1");
      tree.addItem("1.2");
      tree.setParent("1.1", "1");
      tree.setParent("1.2", "1");
      
      tree.expandItem("1");
      tree.select("1.1");
      
      getMainWindow().getContent().addComponent(tree);
   }
}

When i call expandItem() and select(), my tree displays only 1.1 and 1.2 items (others seems to be hidden on the left side).

Is there a bug or it’s a Firefox issue (I use FF: 3.6.17, Linux) or I’m doing something wrong?
11678.png

Hi,

I don’t think you’re doing anything wrong – your code is working OK (no clipping) on Safari 5.1, FF 3.6.17 (Mac) and latest Chrome. Can’t really help you to identify the problem, but maybe this at least reduces the number of possible causes.