Mailspring/internal_packages
Evan Morikawa 9859e594f2 feat(composer): typing at the end of the composer tracks scrolling
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
2015-03-27 19:35:27 -04:00
..
account-sidebar feat(selection): by default nothing is selectable. 2015-03-26 14:39:42 -04:00
attachments
calendar-bar feat(selection): by default nothing is selectable. 2015-03-26 14:39:42 -04:00
composer feat(composer): typing at the end of the composer tracks scrolling 2015-03-27 19:35:27 -04:00
inbox-activity-bar feat(selection): by default nothing is selectable. 2015-03-26 14:39:42 -04:00
inbox-contact-chip
inbox-light-ui
inbox-participants
message-list feat(composer): typing at the end of the composer tracks scrolling 2015-03-27 19:35:27 -04:00
message-templates feat(selection): by default nothing is selectable. 2015-03-26 14:39:42 -04:00
mode-switch
notification-mailto
notification-update-available fix(*) Small visual tweaks and fixes - see summary 2015-03-25 18:22:52 -07:00
notifications
onboarding feat(selection): by default nothing is selectable. 2015-03-26 14:39:42 -04:00
search-bar feat(selection): by default nothing is selectable. 2015-03-26 14:39:42 -04:00
sidebar-fullcontact
sidebar-inbox-internal fix(*) Small visual tweaks and fixes - see summary 2015-03-25 18:22:52 -07:00
thread-list fix(performance): Thread-list re-renders too often 2015-03-27 16:34:59 -07:00
tooltip fix(*) Small visual tweaks and fixes - see summary 2015-03-25 18:22:52 -07:00
unread-badge
unread-notifications fix(displayWindow): Don't display on all selection changes, just when clicking notifications 2015-03-27 15:24:26 -07:00