Reset the list scroll postition when changing pages (Closes #144)

This commit is contained in:
RainLoop Team
2014-04-27 02:23:00 +04:00
parent 90d59e108f
commit 0fcd7cf122
5 changed files with 80 additions and 14 deletions

View File

@@ -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);