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

Function ngmn_GetScreenRect

src/ng_controls/menu.js:342–359  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

340}
341
342function ngmn_GetScreenRect()
343{
344 var rect={ Left: 0, Top: 0, Right: 0, Bottom: 0 };
345
346 var wo=(ngApp ? ngApp.Elm() : null);
347 if(wo)
348 {
349 rect.Right=ng_ClientWidth(wo);
350 rect.Bottom=ng_ClientHeight(wo);
351 }
352 else
353 {
354 rect.Right=ng_WindowWidth();
355 rect.Bottom=ng_WindowHeight();
356 }
357 if(this.OnGetScreenRect) this.OnGetScreenRect(this,rect);
358 return rect;
359}
360
361function ngmn_IsInsidePopup(t,intype,e)
362{

Callers

nothing calls this directly

Calls 4

ng_ClientWidthFunction · 0.85
ng_ClientHeightFunction · 0.85
ng_WindowWidthFunction · 0.85
ng_WindowHeightFunction · 0.85

Tested by

no test coverage detected