summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui/AbstractComponent.java
diff options
context:
space:
mode:
authorJohn Ahlroos <john@vaadin.com>2014-04-04 09:48:37 +0300
committerJonatan Kronqvist <jonatan@vaadin.com>2014-05-21 06:29:44 +0000
commitb179103e8fd82d8b67d87799290e2d5f6aa62ff1 (patch)
treea42c1d1ce0744fcc63a9eec4f66d38d92d87add6 /server/src/com/vaadin/ui/AbstractComponent.java
parentcc5c5af189c0eb16257cdbe0374374c159b67560 (diff)
downloadvaadin-framework-b179103e8fd82d8b67d87799290e2d5f6aa62ff1.tar.gz
vaadin-framework-b179103e8fd82d8b67d87799290e2d5f6aa62ff1.zip
Adds methods for setting only width or height undefined #13546
Change-Id: Ieebe48c75370c0744a2a2619e1ed81dbd090a544
Diffstat (limited to 'server/src/com/vaadin/ui/AbstractComponent.java')
-rw-r--r--server/src/com/vaadin/ui/AbstractComponent.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/server/src/com/vaadin/ui/AbstractComponent.java b/server/src/com/vaadin/ui/AbstractComponent.java
index d0406c3eb7..d980c27916 100644
--- a/server/src/com/vaadin/ui/AbstractComponent.java
+++ b/server/src/com/vaadin/ui/AbstractComponent.java
@@ -825,7 +825,27 @@ public abstract class AbstractComponent extends AbstractClientConnector
*/
@Override
public void setSizeUndefined() {
+ setWidthUndefined();
+ setHeightUndefined();
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see com.vaadin.server.Sizeable#setWidthUndefined()
+ */
+ @Override
+ public void setWidthUndefined() {
setWidth(-1, Unit.PIXELS);
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see com.vaadin.server.Sizeable#setHeightUndefined()
+ */
+ @Override
+ public void setHeightUndefined() {
setHeight(-1, Unit.PIXELS);
}