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

Function ng_SetOuterHeight

src/ng_basic/basic.js:1914–1920  ·  view source on GitHub ↗

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

(o,v)

Source from the content-addressed store, hash-verified

1912 * -
1913 */
1914function ng_SetOuterHeight(o,v)
1915{
1916 v-=ng_GetCurrentStylePx(o,'margin-top') + ng_GetCurrentStylePx(o,'margin-bottom');
1917 v-=ng_GetCurrentStylePx(o,'border-top-width') + ng_GetCurrentStylePx(o,'border-bottom-width');
1918 v-=ng_GetCurrentStylePx(o,'padding-top') + ng_GetCurrentStylePx(o,'padding-bottom');
1919 ng_SetStyleHeight(o,v);
1920}
1921
1922/**
1923 * Function: ng_ClientWidth

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_SetStyleHeightFunction · 0.85

Tested by

no test coverage detected