Only show horizontal scrollbars when necessary