I have a div in a view that I only want to show scrollbars for it if it overflows. I also want to show the borders, but only if it overflows.
I have the scrollbar part figured out using a CSS class
.conditional-scrollbars {
overflow: scroll;
overflow-y: auto;
overflow-x: auto;
}
Is there a way to only show the div borders if it overflows?
Is there an event that fires when the scrollbars are made visible?