summaryrefslogtreecommitdiffstats
path: root/documentation/components/components-customcomponent.asciidoc
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/components/components-customcomponent.asciidoc')
-rw-r--r--documentation/components/components-customcomponent.asciidoc2
1 files changed, 0 insertions, 2 deletions
diff --git a/documentation/components/components-customcomponent.asciidoc b/documentation/components/components-customcomponent.asciidoc
index f8e8f1ddff..7f392885a9 100644
--- a/documentation/components/components-customcomponent.asciidoc
+++ b/documentation/components/components-customcomponent.asciidoc
@@ -34,12 +34,10 @@ class MyComposite extends CustomComponent {
// A layout structure used for composition
Panel panel = new Panel("My Custom Component");
VerticalLayout panelContent = new VerticalLayout();
- panelContent.setMargin(true); // Very useful
panel.setContent(panelContent);
// Compose from multiple components
Label label = new Label(message);
- label.setSizeUndefined(); // Shrink
panelContent.addComponent(label);
panelContent.addComponent(new Button("Ok"));