Skip to main content

PageResizeEvent

Event fired when the size of the containing window or browser is changed.

Typically used to adapt layout dynamically in response to resizes, such as switching between compact and expanded views in a responsive design.

Inherits: Event

Properties

  • height - The new height of the page in logical pixels.
  • width - The new width of the page in logical pixels.

Properties

heightinstance-attribute

height: float

The new height of the page in logical pixels.

widthinstance-attribute

width: float

The new width of the page in logical pixels.