quilljs/quill — pull request #255 by thomsbg (2014-11-20 17:21:01+00:00)
Title: Use alternative method to determine when scrollIntoView() is required upon paste

Measuring the height + scroll position of `@quill.container` is no longer sufficient, as the container can now expand to hold its contents without an internal scroll bar (container is no longer an iframe).

Change the check to be relative to the viewport by using `getBoundingClientRect()` and `document.documentElement.clientHeight`.