Preventing to scroll if content size is smaller than the view