CustomLayout And Field Visibility

I have a form layout-ed with CustomLayout. In this form there is a invisible field.
When the form first appear, the invisible field is hidden as expected.
When I change the form layout to a different CustomLayout (i.e: form.setLayout(new CustomLayout(‘test2’)))
the invisible field is there (its appearance looks weird). The only way to get its visibility back to hidden is to click the “Analyze Layout” in the debug window.

Does anybody know if this is a bug or not?

Doug
11320.png
11321.png

Hi,

It does
sound
like a bug - it would be awesome if you could make a ticket with a small test-case (code, that is).

Best Regards,
Marc

Thanks,
Here is the test case. I will create a ticket too.
11325.zip (7.12 KB)
11326.png
11327.png
11328.png

Here is the ticket #
http://dev.vaadin.com/ticket/5278