user2381011
user2381011

Reputation: 351

Body not set with correct content height

I'm using object oriënted javascript and handlebars as templating system. Today I discovered a problem which I can't solve. When you use templates, they are loaded after the full DOM structure, a result is that the window and body don't get the right height. Concluding that my content is cut off at the bottom of the window and I don't get a scrollbar. All elements (divs, forms, ...) are added via javascript. Anyone knows how to solve this issue?

Upvotes: 0

Views: 41

Answers (1)

Rob Johnstone
Rob Johnstone

Reputation: 1734

The issue is probably in your css. Ensure that the rule for the element that should get a scroll bar does not have a line that reads:

overflow: hidden;

if it does change that line to

overflow: auto;

Upvotes: 1

Related Questions