Click or drag to resize

VisualViewport Properties

Version 101.0.180

The VisualViewport type exposes the following members.

Properties
  NameDescription
Public propertyClientHeight
Height (CSS pixels), excludes scrollbar if present.
Public propertyClientWidth
Width (CSS pixels), excludes scrollbar if present.
Public propertyOffsetX
Horizontal offset relative to the layout viewport (CSS pixels).
Public propertyOffsetY
Vertical offset relative to the layout viewport (CSS pixels).
Public propertyPageX
Horizontal offset relative to the document (CSS pixels).
Public propertyPageY
Vertical offset relative to the document (CSS pixels).
Public propertyScale
Scale relative to the ideal viewport (size at width=device-width).
Public propertyZoom
Page zoom factor (CSS to device independent pixels ratio).
Top
See Also