mirror of https://github.com/zulip/zulip.git
561902b180
When a message list view rerenders a locally echoed message the message recipient header is also rerendered, which then removes the "sticky_header" class if it was present. If rerendering the message triggers a non-user initiated scroll event, then the "sticky_header" class is updated. But it is possible that the rerendering of the message will not trigger a scroll event, which means the recipient header is no longer updated and the next calculation for the message list view's _scroll_limit for the top of the feed will not include the sticky header and the currently selected message may be scrolled partially or completely under the message header recipient bar. In message_list_view.rerender_messages, adds a check, after calling _rerender_header in a loop, for the current message list and calls update_sticky_recipient_headers if the message feed is visible. Adds a comment to _rerender_header that we expect it to only be called in rerender_messages so that the "sticky_header" class is updated if needed. |
||
---|---|---|
.. | ||
e2e-tests | ||
generated | ||
html | ||
images | ||
shared | ||
src | ||
styles | ||
templates | ||
tests | ||
third | ||
.browserslistrc | ||
.gitignore | ||
babel.config.js | ||
debug-require-webpack-plugin.ts | ||
debug-require.js | ||
postcss.config.js | ||
webpack.assets.json | ||
webpack.config.ts | ||
webpack.dev-assets.json |