@@ -399,15 +399,15 @@ trait JQuery extends js.Object {
399399
400400 /** 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/>
401401 * 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
403403
404404 /** Set the CSS outer Height of each element in the set of matched elements. <br/>
405405 * See: <a href="http://api.jquery.com/outerHeight/">jQuery Docs</a> */
406406 def outerHeight (value : Int | Double | String ): JQuery = js.native
407407
408408 /** Get the current computed width for the first element in the set of matched elements, including padding and border. <br/>
409409 * 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
411411
412412 /** Set the CSS outer width of each element in the set of matched elements. <br/>
413413 * See: <a href="http://api.jquery.com/outerWidth/">jQuery Docs</a> */
@@ -1142,11 +1142,23 @@ object JQuery {
11421142 registrations.update(el, jqueryRegs)
11431143 }
11441144
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+
11451152 /** Set the CSS outer Height of each element in the set of matched elements. <br/>
11461153 * See: <a href="http://api.jquery.com/outerHeight/">jQuery Docs</a> */
11471154 def outerHeight (function : (Element , Int , Double ) => Double ): JQuery =
11481155 jquery.asInstanceOf [js.Dynamic ].outerHeight(js.ThisFunction .fromFunction3(function)).asInstanceOf [JQuery ]
11491156
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+
11501162 /** Set the CSS outer width of each element in the set of matched elements. <br/>
11511163 * See: <a href="http://api.jquery.com/outerWidth/">jQuery Docs</a> */
11521164 def outerWidth (function : (Element , Int , Double ) => Double ): JQuery =
0 commit comments