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

Function ng_WindowHeight

src/ng_basic/basic.js:1247–1255  ·  view source on GitHub ↗

* Function: ng_WindowHeight * Returns window height. * * Syntax: * int *ng_WindowHeight* () * * Returns: * Height of browser's window.

()

Source from the content-addressed store, hash-verified

1245 * Height of browser's window.
1246 */
1247function ng_WindowHeight()
1248{
1249 var height=0;
1250 if(typeof(window.innerHeight)=='number'){height=window.innerHeight;}
1251 else if(document.documentElement&&document.documentElement.clientHeight){height=document.documentElement.clientHeight;}
1252 else if(document.body&&document.body.clientHeight){height=document.body.clientHeight;}
1253 if(!height) height=100;
1254 return height;
1255}
1256
1257function ng_SetInnerHTML_Std(o, t, append)
1258{

Callers 15

wedlgbx_CalcAutoSizeFunction · 0.85
ngmn_WindowHeightFunction · 0.85
ngmn_GetScreenRectFunction · 0.85
ng_AlignFunction · 0.85
nge_BeginMobileKeyboardFunction · 0.85
nge_DropDownFunction · 0.85
ngw_CenterFunction · 0.85
ngw_CalcAutoSizeFunction · 0.85
ngw_CheckBoundsFunction · 0.85
ngw_DoPtrDragFunction · 0.85
ngw_DoPtrEndFunction · 0.85
ngh_FindAnchorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected