mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-01 13:14:16 +08:00
9859e594f2
Summary: When you're typing at the end of the composer, then the composer should look like it's scrolling along with you. When you're typing in the middle of the composer, if the footer inforamtion scrolls past the end of the page, then that's fine. When the selection changes, the contenteditable component now caches whether or not the selection is at the end of the content. It has to do it at this point, otherwise the cloned, cached DOM nodes of the saved selection are not the same nodes that will show up in the future. Whether the cursor is at the end is queried by the composer on a body change. If it is, then the composer expects a callback from its parent (the message list), to call to update the scroll position. The message list immediately updates the scroll position to move the bottom of the composer to the bottom of the message-wrap window. Test Plan: edgehill --test Reviewers: bengotow Reviewed By: bengotow Differential Revision: https://review.inboxapp.com/D1366 |
||
---|---|---|
.. | ||
keymaps | ||
lib | ||
spec | ||
stylesheets | ||
.bowerrc | ||
.gitignore | ||
bower.json | ||
build.js | ||
CHANGELOG.md | ||
end.frag | ||
LICENSE.md | ||
package.json | ||
README.md | ||
start.frag |