Added the possibility for horizontal scrolling. See https://github.com/fifengine/fifengine/issues/687
As first the bar visibility is used to decide the scroll direction, if both are visible then the one with the larger scroll size is used.