pl.wendigo.chrome.api.page / LayoutViewport

LayoutViewport

data class LayoutViewport (source)

Layout viewport position and dimensions.

Link
Page#LayoutViewport type documentation.

Constructors

<init>

LayoutViewport(pageX: Int, pageY: Int, clientWidth: Int, clientHeight: Int)

Layout viewport position and dimensions.

Properties

clientHeight

val clientHeight: Int

Height (CSS pixels), excludes scrollbar if present.

clientWidth

val clientWidth: Int

Width (CSS pixels), excludes scrollbar if present.

pageX

val pageX: Int

Horizontal offset relative to the document (CSS pixels).

pageY

val pageY: Int

Vertical offset relative to the document (CSS pixels).