Dialog and From Layout

Hi everyone! I was wondering is it possible to combine Dialog and Form Layout, so that I can open a form in dialog window. I tried defining form with Form Layout and than adding it as a Dialog component, but when I open a Dialog no content is showed. Does anyone have any suggestions how to solve this using Dialog, or maybe some other approach with other components?

Hi Bojan,

Forms works mostly fine in a dialog, except for a wierd sizing issue:

https://github.com/vaadin/vaadin-form-layout/issues/119

Can you post an example that shows the problem?

Maybe for the form layout a setSizeFull() is missing?

Regards

setSizeFull() on form layout solved issue for me and now my form is appearing in the dialog.

Big thanks for the advice!

You’re welcome