-1

Is there a method to check if a container needs scrollbars possibly without adding an object to the container?

Alternatively is there a method to tell if scaled content extends past it's container?

Update:
It looks like there is a element.scrollTopMax and element.scrollLeftMax. That might be non zero after an element is larger than the container.

1.21 gigawatts
  • 16,517
  • 32
  • 123
  • 231

1 Answers1

1

if you use overflow:auto in the css and the scroll bar will automatically add to the container if the content goes beyond the maximum height.