fix content jump on navigation

On navigation between views the content jumps sideways because the scrollbar is temporarily removed.