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

Function ng_SetStyleWidth

src/ng_basic/basic.js:1802–1806  ·  view source on GitHub ↗

* Function: ng_SetStyleWidth * Sets element width defined by style property. * * Syntax: * void *ng_SetStyleWidth* (object elm, int v) * * Parameters: * elm - object element * v - width in pixels * * Returns: * -

(o,v)

Source from the content-addressed store, hash-verified

1800 * -
1801 */
1802function ng_SetStyleWidth(o,v)
1803{
1804 if(typeof o.style.pixelWidth !== 'undefined') o.style.pixelWidth=v;
1805 else o.style.width=v+'px';
1806}
1807
1808/**
1809 * Function: ng_SetStyleHeight

Callers 4

ng_SetOuterWidthFunction · 0.85
ng_SetClientWidthFunction · 0.85
ngsbtn_DoUpdateFunction · 0.85
ngt_DoUpdateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected