Avoid horizontal scrolling and fit to height