diff --git a/src/test/java/com/flowingcode/vaadin/addons/twincolgrid/TwincolDemoView.java b/src/test/java/com/flowingcode/vaadin/addons/twincolgrid/TwincolDemoView.java index e2cdccb..b51ea71 100644 --- a/src/test/java/com/flowingcode/vaadin/addons/twincolgrid/TwincolDemoView.java +++ b/src/test/java/com/flowingcode/vaadin/addons/twincolgrid/TwincolDemoView.java @@ -54,6 +54,8 @@ public TwincolDemoView() { layout.setSizeFull(); IFrame iframe = new IFrame(); iframe.getElement().setAttribute("frameborder", "0"); + iframe.setMinHeight("0"); + iframe.setMinWidth("0"); iframe.getElement().setAttribute("srcdoc", getSrcdoc(BOUND_SOURCE)); iframe.setSizeFull(); layout.addToSecondary(iframe); @@ -75,7 +77,6 @@ public TwincolDemoView() { } else { layout.setOrientation(Orientation.VERTICAL); } - layout.setSplitterPosition(50); layout.getPrimaryComponent().getElement().setAttribute("style", "width: 100%; height: 100%"); iframe.setSizeFull(); }); @@ -85,9 +86,11 @@ public TwincolDemoView() { codeCB.addValueChangeListener(cb -> { if (cb.getValue()) { layout.setSplitterPosition(50); + orientationCB.setEnabled(true); } else { layout.setSplitterPosition(100); + orientationCB.setEnabled(false); } }); HorizontalLayout footer = new HorizontalLayout();