2

I'm trying to set a scrollable content with overflow-y: scroll css style in a md-tab but it's not working The scrollbar is displayed but it's not activated

I enabled it with fixing a height but I want it to fit the content height dynamically

how can I solve this issue ?

1
  • I have the same issue ! Commented Jul 13, 2017 at 17:00

1 Answer 1

1

I am guessing you are trying to keep the tab header out of the scrollable area and make the tab content scrollable only. If that's the case you can set height of tab content with vh. That will keep the tab labels in view and make the height dynamic and content scrollable.

css:

>>> .mat-tab-body-content {
    height: 90vh !important;
}

demo

If this is not what you are looking for, please explain the question little bit further or add some code.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.