diff --git a/src/main/scala/io/udash/wrappers/jquery/JQuery.scala b/src/main/scala/io/udash/wrappers/jquery/JQuery.scala
index f3c3fa5..61ab8f2 100644
--- a/src/main/scala/io/udash/wrappers/jquery/JQuery.scala
+++ b/src/main/scala/io/udash/wrappers/jquery/JQuery.scala
@@ -397,18 +397,10 @@ trait JQuery extends js.Object {
* See: jQuery Docs */
def offsetParent(): JQuery = js.native
- /** 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 null if called on an empty set of elements.
- * 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
@@ -1142,11 +1134,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 =