Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #19517 from jrburke/bug1014278-email-nomail-overlap
Browse files Browse the repository at this point in the history
Bug 1014278 - [B2G][E-mail]'No mail in this Folder' text overlaps email in Local Drafts folder r=asuth
  • Loading branch information
jrburke committed May 22, 2014
2 parents fc8de79 + 01b5a20 commit 46ade5a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions apps/email/js/cards/message_list.js
Expand Up @@ -1142,10 +1142,16 @@ MessageListCard.prototype = {
// from the compose triggered in that view. The scrollStopped
// is used to avoid a flash where the old message is briefly visible
// before cleared, and having the empty layout overlay it.
if (headerCursor.messagesSlice.items.length + addedItems.length - howMany <
1) {
// Using the slice's headerCount because it is updated before splice
// listeners are notified, so should be accurate.
if (!headerCursor.messagesSlice.headerCount) {
this.vScroll.once('scrollStopped', function() {
this.showEmptyLayout();
// Confirm there are still no messages. Since this callback happens
// async, some items could have appeared since first issuing the
// request to show empty.
if (!headerCursor.messagesSlice.headerCount) {
this.showEmptyLayout();
}
}.bind(this));
}

Expand Down

0 comments on commit 46ade5a

Please sign in to comment.