w2layout.sizeTo

Resizes the panel with animation
sizeTo(type, size, [instant])
type string, name of the panel
size integer, new size
instant boolean, indicate if to perform resize of the panel instantly, (optional)

Description

The first argument type is the name of the panel. It can be one of the following:
  • top
  • left
  • main
  • right
  • preview
  • bottom
The second argument size is the new size for the panel. For different types of panels it varies, for left and right panels it is width, for all other panels it is height.
For left and right panel you can define size as a negative value. If it is negative, it will take all available width but the size value (in pixels) you defined.
An example below illustrates the use of resizeTo method:

User Comments

comments powered by Disqus