WinJS.Utilities.getRelativeTop function

Applies to Windows and Windows Phone

Gets the top coordinate of the element relative to the specified parent.

Syntax


var number = WinJS.Utilities.getRelativeTop(element, parent);

Parameters

element

Type: DOMElement

The element.

parent

Type: DOMElement

The parent element.

Return value

Type: Number

The relative top coordinate.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.Utilities

Library

Base.js

 

 

Show:
© 2014 Microsoft