Resizes the object to the width and height of its container.
resize()
Returns number of milliseconds it took to resize.

#### Description

The .resize() method is often called internally, but it is not limited to internal use only. You do not need to call this method when window is resized by the user, because the library already has an event listener for it. But you need to call it when you change the size of the container.
$('#layout').w2layout({ name : 'layout', panels : [ { type: 'top', size: 40 }, { type: 'main', content: 'This is main panel' }, { type: 'preview', size: 200, hidden: true } ] }); // ... // some code // ... w2ui['layout'].resize();