[Bug 47305] Notepad doesn't adjust caret and scroll position properly