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