Skip to content

Conversation

@danxuliu
Copy link
Member

@danxuliu danxuliu commented Jul 4, 2019

Replaces #1950
Fixes #1938

The new message field is below the message list, so adding or removing lines from the message being composed changes the height of the new message field and, with it, the height of the message list. This change, however, did not affect the scroll position of the message list, so adding lines to the new message field caused it to overlap the last visible message in the list. Now the height change in the new message field is handled to update the scroll position of the message list and keep the last visible message at the bottom (both when lines are added and removed from the new message field).

The new message field is below the message list, so adding or removing
lines from the message being composed changes the height of the new
message field and, with it, the height of the message list. This change,
however, did not affect the scroll position of the message list, so
adding lines to the new message field caused it to overlap the last
visible message in the list. Now the height change in the new message
field is handled to update the scroll position of the message list and
keep the last visible message at the bottom (both when lines are added
and removed from the new message field).

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
@danxuliu
Copy link
Member Author

danxuliu commented Jul 4, 2019

/backport to stable16

Copy link
Member

@marcoambrosini marcoambrosini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and works as expected! Very well commented, thanks :)

Copy link
Member

@nickvergessen nickvergessen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works

@nickvergessen nickvergessen merged commit 3014cb5 into master Jul 5, 2019
@delete-merged-branch delete-merged-branch bot deleted the keep-last-visible-message-when-new-message-field-height-changes branch July 5, 2019 09:16
@backportbot-nextcloud
Copy link

backport to stable16 in #1955

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multi-line input overlaps latest messages

4 participants