Fix auto scrolling and layout of debug output view