summaryrefslogtreecommitdiffstats
path: root/shared
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <teemusa@vaadin.com>2016-04-21 10:24:12 +0300
committerTeemu Suo-Anttila <teemusa@vaadin.com>2016-04-21 10:24:12 +0300
commitfa6f39bc84fa94f876248f6e967a3c9cefcd097b (patch)
tree29644e1376a93fec862f185da221845346265fad /shared
parent1bb67a02544e0fbf2999e5a814c79475d1b05c9b (diff)
parentb2f283b414129407f4e839470380e5e5d0383fb4 (diff)
downloadvaadin-framework-fa6f39bc84fa94f876248f6e967a3c9cefcd097b.tar.gz
vaadin-framework-fa6f39bc84fa94f876248f6e967a3c9cefcd097b.zip
Merge remote-tracking branch 'origin/master' into feature/mavenize
Change-Id: I1c55d6158caf32b796a9ad0d9e8df5392812e9a6
Diffstat (limited to 'shared')
-rw-r--r--shared/src/main/java/com/vaadin/shared/ui/MarginInfo.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/shared/src/main/java/com/vaadin/shared/ui/MarginInfo.java b/shared/src/main/java/com/vaadin/shared/ui/MarginInfo.java
index 92f7956015..c66d1f0a11 100644
--- a/shared/src/main/java/com/vaadin/shared/ui/MarginInfo.java
+++ b/shared/src/main/java/com/vaadin/shared/ui/MarginInfo.java
@@ -71,6 +71,16 @@ public class MarginInfo implements Serializable {
doSetMargins(top, right, bottom, left);
}
+ /**
+ * Creates a MarginInfo object by having horizontal and vertical margins specified (analogous to CSS).
+ *
+ * @since 7.6.5
+ *
+ * @param vertical
+ * enable or disable top and bottom margins
+ * @param horizontal
+ * enable or disable left and right margins
+ */
public MarginInfo(boolean vertical, boolean horizontal) {
this(vertical, horizontal, vertical, horizontal);
}