diff options
Diffstat (limited to 'documentation/layout')
-rw-r--r-- | documentation/layout/layout-orderedlayout.asciidoc | 2 |
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")); |