Mercurial > snowl
changeset 105:cd3267665afd
reinit the sidebar view when the number of rows changes
author | Myk Melez <myk@mozilla.org> |
---|---|
date | Sun, 18 May 2008 22:18:29 -0700 |
parents | fe71ec6097f5 |
children | 2a08b4a82802 |
files | extension/content/sidebar.js |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/extension/content/sidebar.js Sun May 18 18:18:25 2008 -0700 +++ b/extension/content/sidebar.js Sun May 18 22:18:29 2008 -0700 @@ -109,7 +109,11 @@ switch (topic) { case "sources:changed": this._rebuildModel(); - this._tree.boxObject.invalidate(); + // Rebuild the view to reflect the new collection of messages. + // Since the number of rows might have changed, we do this by reinitializing + // the view instead of merely invalidating the box object (which doesn't + // expect changes to the number of rows). + this._tree.view = this; break; } },