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

Function ng_ClientWidth

src/ng_basic/basic.js:1935–1951  ·  view source on GitHub ↗

* Function: ng_ClientWidth * Gets element client width. * * Syntax: * int *ng_ClientWidth* (object elm) * * Parameters: * elm - object element * * Returns: * Width in pixels.

(o)

Source from the content-addressed store, hash-verified

1933 * Width in pixels.
1934 */
1935function ng_ClientWidth(o)
1936{
1937 if(!o) return 0;
1938 var w=ng_GetStylePx(o.clientWidth);
1939 if(!w)
1940 {
1941 ng_BeginMeasureElement(o);
1942 w=ng_GetStylePx(o.clientWidth);
1943 ng_EndMeasureElement(o);
1944 if(!w)
1945 {
1946 w=ng_StyleWidth(o);
1947 w+=ng_GetCurrentStylePx(o,'padding-left') + ng_GetCurrentStylePx(o,'padding-right');
1948 }
1949 }
1950 return w;
1951}
1952
1953/**
1954 * Function: ng_ClientHeight

Callers 15

wedlgbx_CalcAutoSizeFunction · 0.85
Create_weMessageDlgFunction · 0.85
Create_dlgAboutFunction · 0.85
ngl_DoUpdateFunction · 0.85
ngl_UpdateColumnsFunction · 0.85
ngl_UpdateFrameFunction · 0.85
ngmn_WindowWidthFunction · 0.85
ngmn_GetScreenRectFunction · 0.85
ngsbtn_DoUpdateFunction · 0.85
ngs_DoPtrStartFunction · 0.85
ngs_DoPtrDragFunction · 0.85
ngs_SetSizeFunction · 0.85

Calls 5

ng_GetStylePxFunction · 0.85
ng_BeginMeasureElementFunction · 0.85
ng_EndMeasureElementFunction · 0.85
ng_StyleWidthFunction · 0.85
ng_GetCurrentStylePxFunction · 0.85

Tested by

no test coverage detected