aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/src/main/java/com/vaadin/ui/HorizontalLayout.java4
-rw-r--r--server/src/main/java/com/vaadin/ui/VerticalLayout.java4
2 files changed, 8 insertions, 0 deletions
diff --git a/server/src/main/java/com/vaadin/ui/HorizontalLayout.java b/server/src/main/java/com/vaadin/ui/HorizontalLayout.java
index ccee900ca1..95edc69e61 100644
--- a/server/src/main/java/com/vaadin/ui/HorizontalLayout.java
+++ b/server/src/main/java/com/vaadin/ui/HorizontalLayout.java
@@ -65,6 +65,10 @@ public class HorizontalLayout extends AbstractOrderedLayout {
* width of all added child components are set to 100% so that the expansion
* will be effective. The width of this layout is also set to 100% if it is
* currently undefined.
+ * <p>
+ * The components are added in the provided order to the end of this layout.
+ * Any components that are already children of this layout will be moved to
+ * new positions.
*
* @param components
* the components to set, not <code>null</code>
diff --git a/server/src/main/java/com/vaadin/ui/VerticalLayout.java b/server/src/main/java/com/vaadin/ui/VerticalLayout.java
index 5d8bda3b4c..b012d46aa8 100644
--- a/server/src/main/java/com/vaadin/ui/VerticalLayout.java
+++ b/server/src/main/java/com/vaadin/ui/VerticalLayout.java
@@ -68,6 +68,10 @@ public class VerticalLayout extends AbstractOrderedLayout {
* height of all added child components are set to 100% so that the
* expansion will be effective. The height of this layout is also set to
* 100% if it is currently undefined.
+ * <p>
+ * The components are added in the provided order to the end of this layout.
+ * Any components that are already children of this layout will be moved to
+ * new positions.
*
* @param components
* the components to set, not <code>null</code>