DropPanel.SizeChanging

Syntax

SizeChanging: function (sender, args)

Parameters

sender. Event source.

args. Event information.

Description

The SizeChanging event occurs before resizing the component.

Comments

For this event to occur, the DropPanel.EnableResize property must be set to True.

Example

To execute the example, create the DropPanel component and a button clicking which expands the panel (see Example of Creating the DropPanel Component). Add the SizeChanging event handler:

DP.SizeChanging.add(function (sender, args)

{

    alert("Current size: height: " + DP.getHeight() + ", width: " + DP.getWidth());

})

After executing the example on pressing the button the panel is expanded. When the user resizes a panel by dragging its borders, the browser window shown information on the component's width and height set before resizing was started.

See also:

DropPanel