Namespace: window

hui. window

Source:

Methods


<static> getViewHeight()

Get the height of the viewport (the visible part of the page)

Source:

<static> getViewWidth()

Get the width of the viewport (the visible part of the page)

Source:

<static> scrollTo(options)

Scroll to an element, will try to show the element in the middle of the screen and only scroll if it makes sence

Parameters:
Name Type Description
options Object

{element:«the element to scroll to»,duration:«milliseconds»,top:«disregarded pixels at top»}

Source: