File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/test/java/com/flowingcode/vaadin/addons/twincolgrid Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,8 @@ public TwincolDemoView() {
5454 layout .setSizeFull ();
5555 IFrame iframe = new IFrame ();
5656 iframe .getElement ().setAttribute ("frameborder" , "0" );
57+ iframe .setMinHeight ("0" );
58+ iframe .setMinWidth ("0" );
5759 iframe .getElement ().setAttribute ("srcdoc" , getSrcdoc (BOUND_SOURCE ));
5860 iframe .setSizeFull ();
5961 layout .addToSecondary (iframe );
@@ -75,7 +77,6 @@ public TwincolDemoView() {
7577 } else {
7678 layout .setOrientation (Orientation .VERTICAL );
7779 }
78- layout .setSplitterPosition (50 );
7980 layout .getPrimaryComponent ().getElement ().setAttribute ("style" , "width: 100%; height: 100%" );
8081 iframe .setSizeFull ();
8182 });
@@ -85,9 +86,11 @@ public TwincolDemoView() {
8586 codeCB .addValueChangeListener (cb -> {
8687 if (cb .getValue ()) {
8788 layout .setSplitterPosition (50 );
89+ orientationCB .setEnabled (true );
8890 }
8991 else {
9092 layout .setSplitterPosition (100 );
93+ orientationCB .setEnabled (false );
9194 }
9295 });
9396 HorizontalLayout footer = new HorizontalLayout ();
You can’t perform that action at this time.
0 commit comments