Simply create a tab and add some child to the tab (set the height property to 100% of the child - the height of div up till the template is correct, but then the child div can't the height.
Any help would be appreciated.
Regards,
Mustafa
I used this solution #2085, it worked for me
Hiya, thanks will give it a go, very much appreciated.
This is a fairly common issue with the tabs component. Maybe the docs could be improved a little? The tabTemplate prop is described like this:
Override the default tab template used to wrap the content of each tab element.
I think this is a little vague. linking to the default tab template could be a great start. Adding a little info about the default tab template's implementation would be nice too.
However, overriding the component that changes the visibility of the tab might be an overkill for these kind of problems, not to mention error prone. Why not have a new prop called tabTemplateStyle that could be used to add height: 100% to the template style? I could work on a PR for this feature if you guys are interested :)
It would be great if we could specify the style of template and gets my vote ;)
An initial migration of the Tabs component has been merged on the next branch.
The component is much simpler, the TabTemplate one was removed. I'm closing this issue.
It's now up to user to handle the views they display. We may provide an helper in the future.
If you find a workaround for the master branch. We would still accept a PR for it 馃憤 .
Thanks.
Most helpful comment
This is a fairly common issue with the tabs component. Maybe the docs could be improved a little? The
tabTemplateprop is described like this:I think this is a little vague. linking to the default tab template could be a great start. Adding a little info about the default tab template's implementation would be nice too.
However, overriding the component that changes the visibility of the tab might be an overkill for these kind of problems, not to mention error prone. Why not have a new prop called
tabTemplateStylethat could be used to addheight: 100%to the template style? I could work on a PR for this feature if you guys are interested :)