* Function: ng_OuterHeight * Gets element outer height. * * Syntax: * int *ng_OuterHeight* (object elm) * * Parameters: * elm - object element * * Returns: * Height in pixels.
(o)
| 1864 | * Height in pixels. |
| 1865 | */ |
| 1866 | function ng_OuterHeight(o) |
| 1867 | { |
| 1868 | var h=ng_GetStylePx(o.offsetHeight); |
| 1869 | if(!h) |
| 1870 | { |
| 1871 | ng_BeginMeasureElement(o); |
| 1872 | h=ng_GetStylePx(o.offsetHeight); |
| 1873 | ng_EndMeasureElement(o); |
| 1874 | } |
| 1875 | return h + ng_GetCurrentStylePx(o,'margin-top') + ng_GetCurrentStylePx(o,'margin-bottom'); |
| 1876 | } |
| 1877 | |
| 1878 | /** |
| 1879 | * Function: ng_SetOuterWidth |
no test coverage detected