fixes sizing issues and horizontal scroll

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