mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-18 22:21:20 +00:00
fix(mail): all folders are correctly listed when displaying/hiding external accounts
This commit is contained in:
1 parent
51650b773a
commit
fcb2c5ecc2
2 files changed
+19
-1
No files matched your search
@@ -26,6 +26,24 @@
|
||||
this.quotaElement = _.find($element.find('div'), function(div) {
|
||||
return div.classList.contains('sg-quota');
|
||||
});
|
||||
|
||||
// The mailboxes list (md-virtual-repeat) only renders the rows that fit in its last
|
||||
// measured height, and only re-measures on window resize. Expanding/collapsing an
|
||||
// account changes the height of the other accounts' lists, so re-measure on any resize.
|
||||
var container = $element[0].querySelector('md-virtual-repeat-container');
|
||||
if (container && window.ResizeObserver) {
|
||||
this.resizeObserver = new ResizeObserver(function () {
|
||||
var containerCtrl = angular.element(container).controller('mdVirtualRepeatContainer');
|
||||
if (containerCtrl && containerCtrl.repeater)
|
||||
containerCtrl.updateSize();
|
||||
});
|
||||
this.resizeObserver.observe(container);
|
||||
}
|
||||
};
|
||||
|
||||
this.$onDestroy = function () {
|
||||
if (this.resizeObserver)
|
||||
this.resizeObserver.disconnect();
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user