MCPcopy Create free account
hub / github.com/controlsjs/controls.js / ng_OuterWidth

Function ng_OuterWidth

src/ng_basic/basic.js:1841–1851  ·  view source on GitHub ↗

* Function: ng_OuterWidth * Gets element outer width. * * Syntax: * int *ng_OuterWidth* (object elm) * * Parameters: * elm - object element * * Returns: * Width in pixels.

(o)

Source from the content-addressed store, hash-verified

1839 * Width in pixels.
1840 */
1841function ng_OuterWidth(o)
1842{
1843 var w=ng_GetStylePx(o.offsetWidth);
1844 if(!w)
1845 {
1846 ng_BeginMeasureElement(o);
1847 w=ng_GetStylePx(o.offsetWidth);
1848 ng_EndMeasureElement(o);
1849 }
1850 return w + ng_GetCurrentStylePx(o,'margin-left') + ng_GetCurrentStylePx(o,'margin-right');
1851}
1852
1853/**
1854 * Function: ng_OuterHeight

Callers 15

wedlgbx_CalcAutoSizeFunction · 0.85
ngmn_DoPopupFunction · 0.85
ngmn_PopupFunction · 0.85
ngmn_PopupCtrlFunction · 0.85
ngmn_PopupSubMenuFunction · 0.85
ngsbtn_DoMenuClickFunction · 0.85
ngsbtn_DoUpdateFunction · 0.85
ngap_UpdateFunction · 0.85
ng_AlignFunction · 0.85
ngb_DoUpdateFunction · 0.85
nge_DropDownFunction · 0.85
ngtbc_DoUpdateFunction · 0.85

Calls 4

ng_GetStylePxFunction · 0.85
ng_BeginMeasureElementFunction · 0.85
ng_EndMeasureElementFunction · 0.85
ng_GetCurrentStylePxFunction · 0.85

Tested by

no test coverage detected