summaryrefslogtreecommitdiffstats
path: root/documentation/layout
diff options
context:
space:
mode:
authorMatti Tahvonen <matti@vaadin.com>2018-04-27 13:13:42 +0300
committerIlia Motornyi <elmot@vaadin.com>2018-04-27 13:13:42 +0300
commit0ff985da0fc2f3372380dbf55711908f8168a549 (patch)
treef0f773c6ca64bf356630ffec5e5808f8f747c0bd /documentation/layout
parent8306f9b60a0a83ed00d1f3738d34961abb7be487 (diff)
downloadvaadin-framework-0ff985da0fc2f3372380dbf55711908f8168a549.tar.gz
vaadin-framework-0ff985da0fc2f3372380dbf55711908f8168a549.zip
Updated to use non-deprecated API (#10855)
* Update layout-orderedlayout.asciidoc
Diffstat (limited to 'documentation/layout')
-rw-r--r--documentation/layout/layout-orderedlayout.asciidoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/documentation/layout/layout-orderedlayout.asciidoc b/documentation/layout/layout-orderedlayout.asciidoc
index b937042ccc..8dc153bc06 100644
--- a/documentation/layout/layout-orderedlayout.asciidoc
+++ b/documentation/layout/layout-orderedlayout.asciidoc
@@ -152,7 +152,7 @@ optional spacing).
[source, java]
----
HorizontalLayout fittingLayout = new HorizontalLayout();
-fittingLayout.setWidth(Sizeable.SIZE_UNDEFINED, 0); // Default
+fittingLayout.setWidthUndefined(); // Default, can be omitted
fittingLayout.setSpacing(false); // Compact layout
fittingLayout.addComponent(new Button("Small"));
fittingLayout.addComponent(new Button("Medium-sized"));