Adds overflow-x and overflow-y to Style since they have at least partial support on all browsers.
Review at: http://gwt-code-reviews.appspot.com/1100801
Review by: jgw
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@9234 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/gwt/dom/client/Style.java b/user/src/com/google/gwt/dom/client/Style.java
index 2e79e61..b10a022 100644
--- a/user/src/com/google/gwt/dom/client/Style.java
+++ b/user/src/com/google/gwt/dom/client/Style.java
@@ -663,6 +663,8 @@
private static final String STYLE_PADDING_BOTTOM = "paddingBottom";
private static final String STYLE_PADDING = "padding";
private static final String STYLE_OVERFLOW = "overflow";
+ private static final String STYLE_OVERFLOW_X = "overflow-x";
+ private static final String STYLE_OVERFLOW_Y = "overflow-y";
private static final String STYLE_OPACITY = "opacity";
private static final String STYLE_MARGIN_TOP = "marginTop";
private static final String STYLE_MARGIN_RIGHT = "marginRight";
@@ -878,6 +880,20 @@
}
/**
+ * Clears the overflow-x CSS property.
+ */
+ public final void clearOverflowX() {
+ clearProperty(STYLE_OVERFLOW_X);
+ }
+
+ /**
+ * Clears the overflow-y CSS property.
+ */
+ public final void clearOverflowY() {
+ clearProperty(STYLE_OVERFLOW_Y);
+ }
+
+ /**
* Clear the padding css property.
*/
public final void clearPadding() {
@@ -1123,6 +1139,20 @@
}
/**
+ * Gets the overflow-x CSS property.
+ */
+ public final String getOverflowX() {
+ return getProperty(STYLE_OVERFLOW_X);
+ }
+
+ /**
+ * Gets the overflow-y CSS property.
+ */
+ public final String getOverflowY() {
+ return getProperty(STYLE_OVERFLOW_Y);
+ }
+
+ /**
* Get the padding css property.
*/
public final String getPadding() {
@@ -1383,6 +1413,20 @@
}
/**
+ * Sets the overflow-x CSS property.
+ */
+ public final void setOverflowX(Overflow value) {
+ setProperty(STYLE_OVERFLOW_X, value.getCssName());
+ }
+
+ /**
+ * Sets the overflow-y CSS property.
+ */
+ public final void setOverflowY(Overflow value) {
+ setProperty(STYLE_OVERFLOW_Y, value.getCssName());
+ }
+
+ /**
* Set the padding css property.
*/
public final void setPadding(double value, Unit unit) {