]> source.dussan.org Git - vaadin-framework.git/commitdiff
docs
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Thu, 18 Dec 2008 06:12:04 +0000 (06:12 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Thu, 18 Dec 2008 06:12:04 +0000 (06:12 +0000)
svn changeset:6256/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/client/Util.java

index 29854057ca5ef31f9b0921fee6e6198e64049828..278c046068aae489cba59cec67397db7323f3484 100644 (file)
@@ -650,10 +650,11 @@ public class Util {
     }
 
     /**
-     * Detects what is currently the oveflow style attribute in given element.
+     * Detects what is currently the overflow style attribute in given element.
      * 
      * @param pe
-     * @return
+     *            the element to detect
+     * @return true if auto or scroll
      */
     public static boolean mayHaveScrollBars(com.google.gwt.dom.client.Element pe) {
         String overflow = getComputedStyle(pe, "overflow");
@@ -668,6 +669,17 @@ public class Util {
         }
     }
 
+    /**
+     * A simple helper method to detect "computed style" (aka style sheets +
+     * element styles). Values returned differ a lot depending on browsers.
+     * Always be very careful when using this.
+     * 
+     * @param el
+     *            the element from which the style property is detected
+     * @param p
+     *            the property to detect
+     * @return String value of style property
+     */
     private static native String getComputedStyle(
             com.google.gwt.dom.client.Element el, String p)
     /*-{