In Vaadin, captions are handled by layouts and apparently SplitPanel doesn’t support displaying captions. So in order to display Table’s caption, you have to wrap your Table into another layout (for example CssLayout) and add the layout to the SplitPanel.
Hi,
after 5 years this discussion seem to be still actual at least for me - the SplitPanel has the same problem.
OK - I have a VerticalSplitPanel. The both componenets of them are Grids wrapped by a CssLayout as recomended. So I see the captions. However inspite of setting of height for both grids to 100% it seems to be so, that they take 100% + the size of the caption each.
I ran it with debug to show you how it looks like. Do you have an idea?
That’s because you use CssLayout; try VerticalLayout instead. CssLayout is very limited in handling sizes, as it is meant to be customized with CSS instead of only Java code. Bottom line; verticallayout will work out of the box in your case, with csslayout you need to play with paddings and margins yourself.