Compartir a través de


ILayoutSite.viewportSize property

This API is no longer supported. Starting with the Windows Library for JavaScript 2.0 Preview, use a the ILayoutSite2 interface. Gets the size of the ListView control's viewport element.

Syntax

var viewportSize = iLayoutSite.viewportSize;

Property value

Type: Object

The size of the ListView control's viewport element. The returned object has these properties:

  • width
    Integer

    The width of the win-viewport element.

  • height
    Integer

    The height of the win-viewport element.

Requirements

Minimum WinJS version

WinJS 3.0

Namespace

WinJS.UI

See also

ILayoutSite