Multiview not resizing to content

Hello!
I put a toolbar and a list of entrys in a multiview connected to a tabbar.
For some reason the tabbar does not resize to the content of the list.
Also, the toolbar positions itself above the list.
What am I doing wrong?

See example here:
http://arai.se/test

May I suggest that you use the webix snippet tool (http://webix.com/snippet/ ) and that you try to extract one problem at a time ? :wink:

I have already made the code work in two separate examples.
It is when combining them problem occurs.
So, yes I have tried to extract one problem at a time.
It seems to me the multiview does not resize properly to content.
I get the feeling I might have missed something obvious! :slight_smile:

Example 1:
http://arai.se/test/example1.html |
http://webix.com/snippet/18f9366f

Example 2:
http://arai.se/test/example2.html |
http://webix.com/snippet/dcc63f30

Example 1+2
http://arai.se/test/ |
http://webix.com/snippet/3ae66c3d

Try switching tabs, then tab one breaks!

Multiview takes the size of the smallest cell. To overcome that, you can use fitBiggest property

view: "multiview",
id: "myMulti",
fitBiggest:true,

http://webix.com/snippet/70cb5f1e

Take a look at this:

http://docs.webix.com/desktop__multiview.html

Great, many thanks for the help!

I am still not sure WHY it works though!
I have read the documentation on fitBiggest and multiview and cannot make sense of it.

In this example the multiview does not have fitBiggest, but still works.
Why is that?
http://webix.com/snippet/dd1fda9f

In your latest snippet, each cell in the multiview has autoheight:true, and as result some fixed height is assigned for each of views. And multiview will adjust self to the active view.

In the previous snippet, list doesn’t have height or autoheight defined, so multiview doesn’t adjust self to those cell.

Without fitBottom - each view has its own size
http://webix.com/snippet/0c59bb94

With fitBiggest- all views have the same size ( size of biggest cell )
http://webix.com/snippet/56cf2e9f

Hi Maksim!
Thank you for the reply, I will try that.