ScrollIntoViewIfNeededRequest

data class ScrollIntoViewIfNeededRequest(nodeId: NodeId?, backendNodeId: BackendNodeId?, objectId: RemoteObjectId?, rect: Rect?)

Represents request frame that can be used with DOM#scrollIntoViewIfNeeded operation call.

Scrolls the specified rect of the given node into view if not already visible. Note: exactly one between nodeId, backendNodeId and objectId should be passed to identify the node.

See also

Constructors

ScrollIntoViewIfNeededRequest
Link copied to clipboard
fun ScrollIntoViewIfNeededRequest(nodeId: NodeId? = null, backendNodeId: BackendNodeId? = null, objectId: RemoteObjectId? = null, rect: Rect? = null)

Properties

backendNodeId
Link copied to clipboard
val backendNodeId: BackendNodeId? = null
Identifier of the backend node.
nodeId
Link copied to clipboard
val nodeId: NodeId? = null
Identifier of the node.
objectId
Link copied to clipboard
val objectId: RemoteObjectId? = null
JavaScript object id of the node wrapper.
rect
Link copied to clipboard
val rect: Rect? = null
The rect to be scrolled into view, relative to the node's border box, in CSS pixels.

Sources

jvm source
Link copied to clipboard