@Deprecated
public static final Unit UNITS_PERCENTAGE = Unit.PERCENTAGE;
+ /**
+ * @deprecated As of 7.3, use instead {@link #setSizeUndefined()},
+ * {@link #setHeightUndefined()} and
+ * {@link #setWidthUndefined()}
+ */
+ @Deprecated
public static final float SIZE_UNDEFINED = -1;
public enum Unit {
*/
public void setSizeUndefined();
+ /**
+ * Clears any defined width
+ *
+ * @since 7.3
+ */
+ public void setWidthUndefined();
+
+ /**
+ * Clears any defined height
+ *
+ * @since 7.3
+ */
+ public void setHeightUndefined();
+
}
*/
@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);
}