Help resizing components

Hi.
I been asking which is the best way to resize the components,
do i have to use jquery’s resize method on the window and calling
component.resize() ?, or there is
another way.

http://webix.com/snippet/10b0a529

Another question
if I want to use different components, each in a different div,
Do i have to use the webix.ui () method? for each component.

thanks!!

Hi,

Possible methods of component resizing are described in the dedicated documentation article.

Actually, the components that don’t have a fixed size should automatically resize when their container element is resized.

In case of markup initialization of Webix components their configuration can be placed in different div elements (like in your snippet) and webix.markup.init(); will do all work.

Check “resizer” component
http://docs.webix.com/desktop__layout.html

Also, while initializing each view in separate container is a valid strategy, using webix layout for placement has its own benefits ( including the usage of resizers )