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

Function ng_SetOuterWidth

src/ng_basic/basic.js:1892–1898  ·  view source on GitHub ↗

* Function: ng_SetOuterWidth * Sets element outer width. * * Syntax: * void *ng_SetOuterWidth* (object elm, int v) * * Parameters: * elm - object element * v - width in pixels * * Returns: * -

(o,v)

Source from the content-addressed store, hash-verified

1890 * -
1891 */
1892function ng_SetOuterWidth(o,v)
1893{
1894 v-=ng_GetCurrentStylePx(o,'margin-left') + ng_GetCurrentStylePx(o,'margin-right');
1895 v-=ng_GetCurrentStylePx(o,'border-left-width') + ng_GetCurrentStylePx(o,'border-right-width');
1896 v-=ng_GetCurrentStylePx(o,'padding-left') + ng_GetCurrentStylePx(o,'padding-right');
1897 ng_SetStyleWidth(o,v);
1898}
1899
1900/**
1901 * Function: ng_SetOuterHeight

Callers 4

ngmn_DoPopupFunction · 0.85
ngap_UpdateFunction · 0.85
ng_AlignFunction · 0.85
nge_DropDownFunction · 0.85

Calls 2

ng_GetCurrentStylePxFunction · 0.85
ng_SetStyleWidthFunction · 0.85

Tested by

no test coverage detected