horizontally center viewer and align scrollbar