Hi, I have a fairly complex layout - a ‘mulitview’ with a datatable as each child of the multiview. The app only uses the body as it’s container.
There is a problem with sizing.
The problem occurs if one of the multiview children is more complicated, and has it’s own layout with 2 sub-datatables.
In that case, the entire multiview resizes to the height of the smallest sub component of the multiview’s children.
I have been able to attach an ‘adjust()’ method, triggered on window resizing, which will resize the entire multiview correctly, but only if the window is manually resized:
webix.event(window, "resize", function(){$$('main_body').adjust()})
My attempts to trigger the resize automatically, e.g. after some delay, have not been successful.
setTimeout(function() {
$(window).trigger('resize');
}, 1000)
Questions:
-
is there some way to force a multiview to occupy 100% height no matter what the size of any of the children are?
-
what is the best way to trigger an automatic resize or adjust(), and what should the timing of that be?
Thanks
Dave