diff options
author | Marko Gronroos <magi@vaadin.com> | 2016-07-25 00:00:36 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2016-08-05 10:19:47 +0300 |
commit | 4a4d05b0354829df86c4f106868d421dca349b34 (patch) | |
tree | db70be8fce2298dbf427775f07b1146e82c66e33 /documentation/layout/layout-customlayout.asciidoc | |
parent | 3ea6a0087b140a13ed0685afa2ffe08a45b82719 (diff) | |
download | vaadin-framework-4a4d05b0354829df86c4f106868d421dca349b34.tar.gz vaadin-framework-4a4d05b0354829df86c4f106868d421dca349b34.zip |
Rescaled images in layout chapter. Various small formatting fixes. Updated history and other matters in introduction.
Change-Id: I0d5e76f7fb07f967dd04941a23e79dfb30049731
Diffstat (limited to 'documentation/layout/layout-customlayout.asciidoc')
-rw-r--r-- | documentation/layout/layout-customlayout.asciidoc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/documentation/layout/layout-customlayout.asciidoc b/documentation/layout/layout-customlayout.asciidoc index cbf430b921..f94d3be3ae 100644 --- a/documentation/layout/layout-customlayout.asciidoc +++ b/documentation/layout/layout-customlayout.asciidoc @@ -67,7 +67,7 @@ CustomLayout content = new CustomLayout("layoutname"); content.setSizeUndefined(); loginPanel.setContent(content); loginPanel.setSizeUndefined(); - + // No captions for fields is they are provided in the template content.addComponent(new TextField(), "username"); content.addComponent(new TextField(), "password"); @@ -78,7 +78,7 @@ The resulting layout is shown below in <<figure.layout.customlayout>>. [[figure.layout.customlayout]] .Example of a Custom Layout Component -image::img/customlayout-example1.png[] +image::img/customlayout-example1.png[width=40%, scaledwidth=70%] You can use [methodname]#addComponent()# also to replace an existing component in the location given in the second parameter. @@ -100,6 +100,3 @@ or ---- new CustomLayout(new FileInputStream(file)); ---- - - - |