mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-08 22:18:28 +03:00
Reset the list scroll postition when changing pages (Closes #144)
This commit is contained in:
parent
90d59e108f
commit
0fcd7cf122
5 changed files with 80 additions and 14 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue