LoginForm in 6.0.1 and 6.1.0 not working as expected

The LoginForm simply does not appear on the screen. I think I’ve narrowed the problem down to a layout issue. Using the debug menu I analyzed the layout and received the following error:

Sub errors >>
Vaadin DEBUG

  • Window/214fe17 “Vangaea” (height: MAIN WINDOW)
    • VerticalLayout/51b2797e (height: UNDEFINED)
      • LoginForm/b6ba69 (height: RELATIVE, 100.0 %)
        • Embedded/761f4ff9 (height: RELATIVE, 100.0 %)
          Layout problem detected: A component with relative height needs a parent with defined height.
          Relative sizes were replaced by undefined sizes, components may not render as expected.

<< Sub erros

I am going to try and set a fixed heigh on the vertical layout and see if that fixes the issue. Of course, if anyone else has experience with this issue, I’d appreciate your responses.

Okay. Apparently setting the Window size doesn’t work, but putting the LoginForm into a fixed-size Layout/Panel does. The following code works:

    LoginForm lf = new LoginForm();
    VerticalLayout vl = new VerticalLayout();
    Window w = new Window("Vangaea");