MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / top

Function top

apps/automated/src/ui/layouts/layout-tests-helper.ts:12–14  ·  view source on GitHub ↗
(view: View)

Source from the content-addressed store, hash-verified

10 return round(dipToDp(view.getLocationInWindow().x));
11}
12export function top(view: View): number {
13 return round(dipToDp(view.getLocationInWindow().y));
14}
15export function right(view: View): number {
16 return left(view) + width(view);
17}

Calls 2

roundFunction · 0.50
getLocationInWindowMethod · 0.45

Tested by

no test coverage detected