I am trying to display grids that are in dialog but they only appear if we define a height like grid.setHeight(200px). this is my code : https://gist.github.com/ust3000/b41c1c829e2e6d9a64b9e082bc150f5f What is the right way to display grid inside Dialog and make the dialog responsive ?
public class TestPage extends HorizontalLayout {
public TestPage() {
setJustifyContentMode(JustifyContentMode.CENTER);
Grid<Row> grid1 = new Grid<>();
Grid<Row> grid2 = new Grid<>();
SplitLayout sp = new SplitLayout(grid1, grid2);
sp.setOrientation(SplitLayout.Orientation.HORIZONTAL);
// add column and populate grid1 and grid2
Dialog dialog = new Dialog();
dialog.add(sp);
this.add(dialog);
this.expand(dialog);
dialog.open();
this.setSizeFull();
}
}
