Webix Dashboard CellHeight dynamic height for each cell in scrollview

I have situtation where webix dashboard i have created with scrollview, Each panel in varying size. Setting cellHeight at beginning show UI Panel small with lot of unwanted scrollbars.

Assume i have dashboard with ten panels. each panel may change their height depends on content. First Time it may be 200 after some time i populate new view into same panel now height eventually required to change

i m setting height panel height using panel.define('height',xxx), but no luck.
Changing CellHeight definition affacts everthing.

Comments

  • edited February 21

    Hello @2mailpks,

    i m setting height panel height using panel.define('height',xxx), but no luck.

    The panel height is controlled by the dy property, which specifies the number of cells the panel should take in a row/column (the total amount of cells a panel should take is controlled by the cellHeight/cellWidth properties). Basically, this means that you won't be able to adjust to the size of the inner view perfectly per say, but you still can adjust the size of the panel relative to the view inside. Here is a rouch example of how this can be done: https://snippet.webix.com/mzm5ulo6 (please note that this example assumes that every view within the panel has a defined height).

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion