-
Notifications
You must be signed in to change notification settings - Fork 87
Open
Labels
Impact: LowSeverity: MinorV14 onlyIssue is only valid for Vaadin 14Issue is only valid for Vaadin 14bugSomething isn't workingSomething isn't workingvaadin-details
Description
Creating a Board inside a collapse Details causes the Board not to expand correctly when the Details is opened. The elements are stacked on top of each other instead of displaying them in rows.
public MainView() {
final Board board = new Board();
board.addRow(new TextField("Field1"), new TextField("Field2"), new TextField("Field3"), new TextField("Field4"));
board.addRow(new ComboBox<String>("Combo1"), new ComboBox<String>("Combo2"), new ComboBox<String>("Combo3"), new ComboBox<String>("Combo4"));
Details details = new Details("Expand me!", board);
details.getElement().getStyle().set("width", "100%");
add(details);
}A workaround we are using
details.addOpenedChangeListener(event -> {
if (event.isFromClient() && event.isOpened()) {
board.redraw();
}
});If the Details is opened, the Board gets the right width.
Metadata
Metadata
Assignees
Labels
Impact: LowSeverity: MinorV14 onlyIssue is only valid for Vaadin 14Issue is only valid for Vaadin 14bugSomething isn't workingSomething isn't workingvaadin-details