user10278995
user10278995

Reputation:

Angular 2+ Check if content is overlapping parent container

I'm trying to develop a calendar in Angular 2+. This is the actual result:

My question: Is there a way to check if the content is overlapping the parent container?

Upvotes: 1

Views: 325

Answers (1)

End
End

Reputation: 626

You could possibly get the height of the parent container and the height of the content. Then make a comparison, so if the content height is greater than the parent height you know its overflowing.

Otherwise you could simply prevent the over flow with CSS by setting the overflow property to scroll.

Upvotes: 1

Related Questions