fixes sizing issues and horizontal scroll

This should fix issues #28, #30, #32, #33, and any others related to horizontal scrolling.