0

I have set overflow: hidden for my body to keep the contents only inside the viewport and to disable scrolling. Body height is fixed. But I have a component which should have the ability to scroll horizontally. Since I have hidden overflow in body, now I can't enable scrolling in that component.

Any solution?

2 Answers 2

4

Add this to your component style:

height: 100vh;
overflow: auto;
Sign up to request clarification or add additional context in comments.

Comments

0

You can add in style-sheet:

overflow-x:auto;

Comments

Your Answer

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