Partager via


WinJS.Utilities.getRelativeLeft function

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

Syntax

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

Parameters

  • element
    Type: DOMElement

    The element.

  • parent
    Type: DOMElement

    The parent element.

Return value

Type: Number

The relative left coordinate.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.Utilities