|
1 | 1 | <?xml version="1.0"?> |
2 | 2 | <entries> |
3 | | - <desc>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.</desc> |
| 3 | + <desc>Get the current computed outer height (including padding, border, and optionally margin) for the first element in the set of matched elements or set the outer height of every matched element.</desc> |
4 | 4 | <entry type="method" name="outerHeight" return="Number"> |
5 | 5 | <title>.outerHeight()</title> |
6 | 6 | <signature> |
|
9 | 9 | <desc>A Boolean indicating whether to include the element's margin in the calculation.</desc> |
10 | 10 | </argument> |
11 | 11 | </signature> |
12 | | - <desc>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.</desc> |
| 12 | + <desc>Get the current computed outer height (including padding, border, and optionally margin) for the first element in the set of matched elements.</desc> |
13 | 13 | <longdesc> |
14 | | - <p>The top and bottom padding and border are always included in the <code>.outerHeight()</code> calculation; if the <code>includeMargin</code> argument is set to <code>true</code>, the margin (top and bottom) is also included.</p> |
15 | | - <p>This method is not applicable to <code>window</code> and <code>document</code> objects; for these, use <code><a href="/height/">.height()</a></code> instead.</p> |
| 14 | + <p>Returns the height of the element, including top and bottom padding, border, and optionally margin, in pixels.</p> |
| 15 | + <p>This method is not applicable to <code>window</code> and <code>document</code> objects; for these, use <code><a href="/height/">.height()</a></code> instead. Although <code>.outerHeight()</code> can be used on table elements, it may give unexpected results on tables using the <code>border-collapse: collapse</code> CSS property.</p> |
16 | 16 | <figure> |
17 | 17 | <img src="/resources/0042_04_03.png"/> |
18 | 18 | <figcaption>Figure 1 - Illustration of the measured height</figcaption> |
@@ -60,7 +60,7 @@ $( "p:last" ).text( |
60 | 60 | <desc>A function returning the outer height to set. Receives the index position of the element in the set and the old outer height as arguments. Within the function, <code>this</code> refers to the current element in the set.</desc> |
61 | 61 | </argument> |
62 | 62 | </signature> |
63 | | - <desc>Set the CSS outer Height of each element in the set of matched elements.</desc> |
| 63 | + <desc>Set the CSS outer height of each element in the set of matched elements.</desc> |
64 | 64 | <longdesc> |
65 | 65 | <p>When calling <code>.outerHeight(value)</code>, the value can be either a string (number and unit) or a number. If only a number is provided for the value, jQuery assumes a pixel unit. If a string is provided, however, any valid CSS measurement may be used (such as <code>100px</code>, <code>50%</code>, or <code>auto</code>).</p> |
66 | 66 | </longdesc> |
|
0 commit comments