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

Function ng_GetCurrentStylePx

src/ng_basic/basic.js:1747–1750  ·  view source on GitHub ↗

* Function: ng_GetCurrentStylePx * Extracts pixels value from current (computed) style of element. * * Syntax: * int *ng_GetCurrentStylePx* (object elm, string style) * * Parameters: * elm - object element * style - name of the style, for example 'margin-right' * *

(o,s)

Source from the content-addressed store, hash-verified

1745 *
1746 */
1747function ng_GetCurrentStylePx(o,s)
1748{
1749 return ng_GetStylePx(ng_GetCurrentStyle(o,s));
1750}
1751
1752/**
1753 * Function: ng_StyleWidth

Callers 15

wedlgbx_CalcAutoSizeFunction · 0.85
ng_findMousePosXFunction · 0.85
ng_findMousePosYFunction · 0.85
ng_ParentPositionFunction · 0.85
ng_OuterWidthFunction · 0.85
ng_OuterHeightFunction · 0.85
ng_SetOuterWidthFunction · 0.85
ng_SetOuterHeightFunction · 0.85
ng_ClientWidthFunction · 0.85
ng_ClientHeightFunction · 0.85
ng_SetClientWidthFunction · 0.85
ng_SetClientHeightFunction · 0.85

Calls 2

ng_GetStylePxFunction · 0.85
ng_GetCurrentStyleFunction · 0.85

Tested by

no test coverage detected