Still fiddling around with TabBar, and getting better with it by the minute. Great-looking tool, I have to get acquainted with the rest of the DXH-products.
Now, I have some material that I want tabbed that have a clear width, but the height can vary. I tried with the following declarations in the wrapping div:
but nothing happened…oh, yeah, the whole tabbed area disappeared. Not what I wanted to happen.
Any trick for achieving a flexible height, or do I have to define a rigid value?
I need the content of each tab to be of a size of the DataView (in the above example data1 is 2 rows, but the other tabs have different DataViews attached each of different height.
Thanks Alexandra. Is there a way to get the height of the DataView view? In the example provided the values are fixed - in a real life the height depends on the window size, number of elements in the view etc. Is that something we can do with DataView and the Tabbar?
I played with that thing for few hours and came out with the following set of settings
dvTabbar.setTabActive('dv1Tab');
dvTabbar.enableAutoReSize(true,true);
dvTabbar.enableAutoSize(true,true);
Seems to work with both values (width and height) to be set to true for both AutoSize and AutoReSize functions.
Te important thing here is that setTabActive should be called BEFORE enabling auto sizing. If it is called afterwards, the active tab is incorrectly autosized
Hopefully this may be a workaround for another poor soul like myself