Skip to content

TabContainer / Tab: It's not possible to use CSS height:100% inside a Tab #202

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
CristianDDias opened this issue Oct 22, 2019 · 2 comments · Fixed by #236
Closed

TabContainer / Tab: It's not possible to use CSS height:100% inside a Tab #202

CristianDDias opened this issue Oct 22, 2019 · 2 comments · Fixed by #236

Comments

@CristianDDias
Copy link

Describe the bug
It's not possible to use CSS height: 100% inside a Tab component. I want to use the TabContainer and Tab components inside a Panel component that I created. This Panel component is a div with 400px height. I set the CSS height of the TabContainer component to 100%. However, when I set the CSS height of the Tab component to 100%, it doesn't work, it only works when I set the CSS height to a pixel value (not a percentage value).

To Reproduce
Access the CodeSandbox link.
In the initial state of this code, the TabContainer and Tab components have height: 100% and the TabContainer component has overflow: auto. In this case, the panel is 400px height, which is correct, but when you scroll down, the tab header isn't fixed at the top of the panel. When you click on the Toggle style button, the AnalyticalTable component gets a style props with height: 150px, which fixes the tab header at the top of the panel, but the panel isn't 400px height, because I'm using height: 150px.

Expected behavior
I expect that when I set the CSS height: 100% inside a Tab component, it should fill all the available space inside content area of the TabContainer component.

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Chrome
  • Version: 77
@MarcusNotheis
Copy link
Contributor

Hi @CristianDDias
thanks for submitting this issue.
As the TabContainer and the Tab are UI5 Web Components, I forwarded this issue to our colleagues: SAP/ui5-webcomponents#889

@MarcusNotheis
Copy link
Contributor

Hi @CristianDDias, should be fixed the latest dev version of the library

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants