title: Nativescript get element position
body: <p>Is there a way to get the element's current position? it's x and y.or offsetTop. I tried <code>getLocationOnScreen</code> and <code>getLocationInWindow</code> but the result was undefined.
  also I tried <code>this.el.nativeElement.offsetTop</code> but result was same.</p>