Fix scroll glitch when new messages are loaded at top.

`process_condensing` before updating the scroll position, because it can
change the height of messages.

(imported from commit ca500351447fcabc3b03bb01a55a8e25bf8e9578)
This commit is contained in:
Kevin Mehall 2013-07-17 12:08:46 -04:00
parent a0a91163fd
commit 8863340e98
1 changed files with 2 additions and 1 deletions

View File

@ -434,6 +434,8 @@ MessageList.prototype = {
}
}
$.each(rendered_elems, ui.process_condensing);
if (where === 'top' && table.find('.ztable_layout_row').length > 0) {
// If we have a totally empty narrow, there may not
// be a .ztable_layout_row.
@ -474,7 +476,6 @@ MessageList.prototype = {
var id = rows.id(row);
message_edit.maybe_show_edit(row, id);
});
$.each(rendered_elems, ui.process_condensing);
// Re-add the fading of messages that is lost when we re-render.
compose.update_faded_messages();