Hi all, sorry for my english.
I need help about this question.
I have a Dialog with inside a FormLayout. Every time i add a TextField in the FormLayout, the width of Dialog grows.
This is my code:
Dialog myDialog = new Dialog();
FormLayout formLayout = new FormLayout();
// Layout Inserimento dati
TextField textField1 = new TextField("textField1");
TextField textField2 = new TextField("textField2");
TextField textField3 = new TextField("textField3");
TextField textField4 = new TextField("textField4");
TextField textField5 = new TextField("textField5");
TextField textField6 = new TextField("textField6");
formLayout.add(textField1);
formLayout.add(textField2);
formLayout.add(textField3);
formLayout.add(textField4);
formLayout.add(textField5);
formLayout.add(textField6);
myDialog.add(formLayout);
myDialog.open();
You can see different widths in attachment.
I tried to set the width of the dialog in percentage ( myDialog.setWidth(“70%”) ) with a strange effect: the Dialog remain the same but the FormLayout is reduced !
What am I doing wrong ?
Any help is appreciated.