From 33f1399f96a0a3ac2ef6afe94bb85bf6ef46177d Mon Sep 17 00:00:00 2001
From: Cyrille Dejemeppe
+ /** Get the current computed height for the first element in the set of matched elements, including padding, border, and optionally margin. Returns a number (without "px") representation of the value or undef if called on an empty set of elements.
* See: jQuery Docs */
- def outerHeight(includeMargin: Boolean = js.native): Double = js.native
+ def outerHeight(includeMargin: Boolean = js.native): js.UndefOr[Double] = js.native
/** Set the CSS outer Height of each element in the set of matched elements.
* See: jQuery Docs */
@@ -407,7 +407,7 @@ trait JQuery extends js.Object {
/** Get the current computed width for the first element in the set of matched elements, including padding and border.
* See: jQuery Docs */
- def outerWidth(includeMargin: Boolean = js.native): Double = js.native
+ def outerWidth(includeMargin: Boolean = js.native): js.UndefOr[Double] = js.native
/** Set the CSS outer width of each element in the set of matched elements.
* See: jQuery Docs */
From 75d9b80f0cb47a8bce6e308cde44d0ebdffb563e Mon Sep 17 00:00:00 2001
From: Cyrille Dejemeppe
* See: jQuery Docs */
- def outerHeight(includeMargin: Boolean = js.native): js.UndefOr[Double] = js.native
+ def outerHeight(includeMargin: Boolean = js.native): Double = js.native
/** Set the CSS outer Height of each element in the set of matched elements.
* See: jQuery Docs */
@@ -407,7 +407,7 @@ trait JQuery extends js.Object {
/** Get the current computed width for the first element in the set of matched elements, including padding and border.
* See: jQuery Docs */
- def outerWidth(includeMargin: Boolean = js.native): js.UndefOr[Double] = js.native
+ def outerWidth(includeMargin: Boolean = js.native): Double = js.native
/** Set the CSS outer width of each element in the set of matched elements.
* See: jQuery Docs */
@@ -1142,11 +1142,23 @@ object JQuery {
registrations.update(el, jqueryRegs)
}
+ /** Get the current computed height for the first element in the set of matched elements, including padding,
+ * border, and optionally margin. Returns a number (without "px") representation of the value or undef
+ * if called on an empty set of elements.
+ * See: jQuery Docs */
+ def outerHeight(includeMargin: Boolean = false): Option[Double] =
+ jquery.asInstanceOf[js.Dynamic].outerHeight(includeMargin).asInstanceOf[UndefOr[Double]].toOption
+
/** Set the CSS outer Height of each element in the set of matched elements.
* See: jQuery Docs */
def outerHeight(function: (Element, Int, Double) => Double): JQuery =
jquery.asInstanceOf[js.Dynamic].outerHeight(js.ThisFunction.fromFunction3(function)).asInstanceOf[JQuery]
+ /** Get the current computed width for the first element in the set of matched elements, including padding and border.
+ * See: jQuery Docs */
+ def outerWidth(includeMargin: Boolean = false): Option[Double] =
+ jquery.asInstanceOf[js.Dynamic].outerWidth(includeMargin).asInstanceOf[UndefOr[Double]].toOption
+
/** Set the CSS outer width of each element in the set of matched elements.
* See: jQuery Docs */
def outerWidth(function: (Element, Int, Double) => Double): JQuery =
From 31788bc9b47341fd5c38bbf2e74aa4a2351c7f89 Mon Sep 17 00:00:00 2001
From: Cyrille Dejemeppe
- * See: jQuery Docs */
- def outerHeight(includeMargin: Boolean = js.native): Double = js.native
-
/** Set the CSS outer Height of each element in the set of matched elements.
* See: jQuery Docs */
def outerHeight(value: Int | Double | String): JQuery = js.native
- /** Get the current computed width for the first element in the set of matched elements, including padding and border.
- * See: jQuery Docs */
- def outerWidth(includeMargin: Boolean = js.native): Double = js.native
-
/** Set the CSS outer width of each element in the set of matched elements.
* See: jQuery Docs */
def outerWidth(value: Int | Double | String): JQuery = js.native