aboutsummaryrefslogtreecommitdiffstats
path: root/documentation/layout/layout-gridlayout.asciidoc
diff options
context:
space:
mode:
authorHenri Sara <henri.sara@gmail.com>2017-01-05 17:38:33 +0200
committerGitHub <noreply@github.com>2017-01-05 17:38:33 +0200
commit11f10b827e92ed7c07d6584a181f7f1374e8109b (patch)
tree7df28388d5170b733150cea9b4731b32cb094d02 /documentation/layout/layout-gridlayout.asciidoc
parentb74e08cfe8a849a8f74e6f9f0a3d7c0475ce196d (diff)
downloadvaadin-framework-11f10b827e92ed7c07d6584a181f7f1374e8109b.tar.gz
vaadin-framework-11f10b827e92ed7c07d6584a181f7f1374e8109b.zip
Update layout chapter of the documentation for version 8 (#8154)
The SplitPanel chapter still uses a Tree in its example.
Diffstat (limited to 'documentation/layout/layout-gridlayout.asciidoc')
-rw-r--r--documentation/layout/layout-gridlayout.asciidoc4
1 files changed, 0 insertions, 4 deletions
diff --git a/documentation/layout/layout-gridlayout.asciidoc b/documentation/layout/layout-gridlayout.asciidoc
index c2db30c6c7..fbd45fad98 100644
--- a/documentation/layout/layout-gridlayout.asciidoc
+++ b/documentation/layout/layout-gridlayout.asciidoc
@@ -107,7 +107,6 @@ expanding rows/columns.
[source, java]
----
GridLayout grid = new GridLayout(3,2);
-ifdef::web[]
// Layout containing relatively sized components must have
// a defined size, here is fixed size.
grid.setWidth("600px");
@@ -127,7 +126,6 @@ for (int i=0; i<labels.length; i++) {
label.setWidth(null); // Set width as undefined
grid.addComponent(label);
}
-endif::web[]
// Set different expansion ratios for the two columns
grid.setColumnExpandRatio(1, 1);
grid.setColumnExpandRatio(2, 5);
@@ -135,7 +133,6 @@ grid.setColumnExpandRatio(2, 5);
// Set the bottom row to expand
grid.setRowExpandRatio(1, 1);
-ifdef::web[]
// Align and size the labels.
for (int col=0; col<grid.getColumns(); col++) {
for (int row=0; row<grid.getRows(); row++) {
@@ -148,7 +145,6 @@ for (int col=0; col<grid.getColumns(); col++) {
c.setHeight("100%");
}
}
-endif::web[]
----
[[figure.ui.gridlayout.sizing.expanding]]