@@ -397,18 +397,10 @@ trait JQuery extends js.Object {
397
397
* See: <a href="http://api.jquery.com/offsetParent/">jQuery Docs</a> */
398
398
def offsetParent (): JQuery = js.native
399
399
400
- /** 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. <br/>
401
- * See: <a href="http://api.jquery.com/outerHeight/">jQuery Docs</a> */
402
- def outerHeight (includeMargin : Boolean = js.native): Double = js.native
403
-
404
400
/** Set the CSS outer Height of each element in the set of matched elements. <br/>
405
401
* See: <a href="http://api.jquery.com/outerHeight/">jQuery Docs</a> */
406
402
def outerHeight (value : Int | Double | String ): JQuery = js.native
407
403
408
- /** Get the current computed width for the first element in the set of matched elements, including padding and border. <br/>
409
- * See: <a href="http://api.jquery.com/outerWidth/">jQuery Docs</a> */
410
- def outerWidth (includeMargin : Boolean = js.native): Double = js.native
411
-
412
404
/** Set the CSS outer width of each element in the set of matched elements. <br/>
413
405
* See: <a href="http://api.jquery.com/outerWidth/">jQuery Docs</a> */
414
406
def outerWidth (value : Int | Double | String ): JQuery = js.native
@@ -1142,11 +1134,23 @@ object JQuery {
1142
1134
registrations.update(el, jqueryRegs)
1143
1135
}
1144
1136
1137
+ /** Get the current computed height for the first element in the set of matched elements, including padding,
1138
+ * border, and optionally margin. Returns a number (without "px") representation of the value or undef
1139
+ * if called on an empty set of elements. <br/>
1140
+ * See: <a href="http://api.jquery.com/outerHeight/">jQuery Docs</a> */
1141
+ def outerHeight (includeMargin : Boolean = false ): Option [Double ] =
1142
+ jquery.asInstanceOf [js.Dynamic ].outerHeight(includeMargin).asInstanceOf [UndefOr [Double ]].toOption
1143
+
1145
1144
/** Set the CSS outer Height of each element in the set of matched elements. <br/>
1146
1145
* See: <a href="http://api.jquery.com/outerHeight/">jQuery Docs</a> */
1147
1146
def outerHeight (function : (Element , Int , Double ) => Double ): JQuery =
1148
1147
jquery.asInstanceOf [js.Dynamic ].outerHeight(js.ThisFunction .fromFunction3(function)).asInstanceOf [JQuery ]
1149
1148
1149
+ /** Get the current computed width for the first element in the set of matched elements, including padding and border. <br/>
1150
+ * See: <a href="http://api.jquery.com/outerWidth/">jQuery Docs</a> */
1151
+ def outerWidth (includeMargin : Boolean = false ): Option [Double ] =
1152
+ jquery.asInstanceOf [js.Dynamic ].outerWidth(includeMargin).asInstanceOf [UndefOr [Double ]].toOption
1153
+
1150
1154
/** Set the CSS outer width of each element in the set of matched elements. <br/>
1151
1155
* See: <a href="http://api.jquery.com/outerWidth/">jQuery Docs</a> */
1152
1156
def outerWidth (function : (Element , Int , Double ) => Double ): JQuery =
0 commit comments