mirror of
https://github.com/RainLoop/rainloop-webmail.git
synced 2026-02-05 11:34:54 +01:00
Reset the list scroll postition when changing pages (Closes #144)
This commit is contained in:
@@ -208,6 +208,10 @@ function MailBoxMessageListViewModel()
|
||||
return oMessage ? oMessage.generateUid() : '';
|
||||
});
|
||||
|
||||
oData.messageListEndHash.subscribe(function (mValue) {
|
||||
this.selector.scrollToTop();
|
||||
}, this);
|
||||
|
||||
oData.layout.subscribe(function (mValue) {
|
||||
this.selector.autoSelect(Enums.Layout.NoPreview !== mValue);
|
||||
}, this);
|
||||
|
||||
Reference in New Issue
Block a user