Home Reference Source
import {ResizeEvent} from './vgui/15-resize-event.js'
public class | source

ResizeEvent

Extends:

Event → ResizeEvent

Event that is dispatched when the panel is resized by a parent

Constructor Summary

Public Constructor
public

constructor(width: int, height: int)

Creates a new ResizeEvent

Member Summary

Public Members
public get

height: *

The new height of the panel

public get
public get

width: *

The new width of the panel

Inherited Summary

From class Event
public get

bubbles: *

Wether this event should bubble up the DOM tree

public get

Wether preventDefault can be called to stop the default action

public get

target: *

The element where the Event originated

public get

The type of the event

public

Prevents the default action from happening.

public

Stops the event from bubbling up.

protected

Public Constructors

public constructor(width: int, height: int) source

Creates a new ResizeEvent

Override:

Event#constructor

Params:

NameTypeAttributeDescription
width int

The new width of the panel

height int

The new height of the panel

Public Members

public get height: * source

The new height of the panel

public get type: string source

Override:

Event#type

public get width: * source

The new width of the panel