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

Function ng_SetClientWidth

src/ng_basic/basic.js:1998–2002  ·  view source on GitHub ↗

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

(o,v)

Source from the content-addressed store, hash-verified

1996 * -
1997 */
1998function ng_SetClientWidth(o,v)
1999{
2000 v-=ng_GetCurrentStylePx(o,'padding-left') + ng_GetCurrentStylePx(o,'padding-right');
2001 ng_SetStyleWidth(o,v);
2002}
2003
2004/**
2005 * Function: ng_SetClientHeight

Callers 12

ngl_UpdateColumnsFunction · 0.85
ngi_DoUpdateFunction · 0.85
ngimgmap_DoUpdateFunction · 0.85
ngb_DoUpdateFunction · 0.85
ngtb_UpdateFunction · 0.85
ngwb_DoUpdateFunction · 0.85
ngcal_DoUpdateFunction · 0.85
ngw_CalcAutoSizeFunction · 0.85
ngh_DoUpdateFunction · 0.85
check_anchorsFunction · 0.85
nghtxt_DoHintUpdateFunction · 0.85
dlgbx_CalcAutoSizeFunction · 0.85

Calls 2

ng_GetCurrentStylePxFunction · 0.85
ng_SetStyleWidthFunction · 0.85

Tested by

no test coverage detected