Forgot to remove the lines of code that set the scroll view border outside the if statement.