setVisible() in InlineDateField

Hi,

I’m using a InlineDateField in my Vaadin application. When the application is started, the InlineDateField shoudn’t be visible, so I executet “setVisible(false)” on the InlineDateField. But when I’m using the code below, the Button which is created after the InlineDateSelect isn’t visible. Is this a bug in Vaadin?

I just createt a new Vaadin application (Vaadin 6.7.7) with Maven and and inserted the 3 Lines to add the InlineDateField.

Julian

@Override
    public void init()
    {
        window = new Window("My Vaadin Application");
        setMainWindow(window);
        
        InlineDateField field = new InlineDateField();
        field.setVisible(false);
        window.addComponent(field);
        
        Button button = new Button("Click Me");
        button.addListener(new Button.ClickListener() {
            public void buttonClick(ClickEvent event) {
                window.addComponent(new Label("Thank you for clicking"));
            }
        });
        window.addComponent(button);
        
    }

Seems to be at least with VerticalLayout. With CssLayout it works. Please file a bug to Vaadin trac.

I created a bug report for it: http://dev.vaadin.com/ticket/8693