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

Function ng_StyleWidth

src/ng_basic/basic.js:1765–1768  ·  view source on GitHub ↗

* Function: ng_StyleWidth * Gets element width defined by style property. * * Syntax: * int *ng_StyleWidth* (object elm) * * Parameters: * elm - object element * * Returns: * Width in pixels.

(o)

Source from the content-addressed store, hash-verified

1763 * Width in pixels.
1764 */
1765function ng_StyleWidth(o)
1766{
1767 return (typeof o.style.pixelWidth !== 'undefined' ? ng_GetStylePx(o.style.pixelWidth) : ng_GetStylePx(o.style.width));
1768}
1769
1770/**
1771 * Function: ng_StyleHeight

Callers 10

ng_ClientWidthFunction · 0.85
ngl_DoUpdateFunction · 0.85
ngap_UpdateFunction · 0.85
ngc_CreateFunction · 0.85
ngt_DoUpdateFunction · 0.85
ngi_DoUpdateFunction · 0.85
ngimgmap_DoUpdateFunction · 0.85
ngb_DoUpdateFunction · 0.85
ngtb_UpdateFunction · 0.85
ngcal_DoUpdateFunction · 0.85

Calls 1

ng_GetStylePxFunction · 0.85

Tested by

no test coverage detected