avoid whitespace and expand all matching section when filtering

This commit is contained in:
Bruno Windels 2019-01-28 18:28:04 +01:00
parent 8d1e105b50
commit 529c48d1b0
3 changed files with 43 additions and 22 deletions

View file

@ -68,7 +68,7 @@ export class Layout {
this._applyNewSize();
}
update(sections, availableHeight) {
update(sections, availableHeight, force = false) {
let heightChanged = false;
if (Number.isFinite(availableHeight) && availableHeight !== this._availableHeight) {
@ -83,7 +83,7 @@ export class Layout {
return a.id !== b.id || a.count !== b.count;
});
if (!heightChanged && !sectionsChanged) {
if (!heightChanged && !sectionsChanged && !force) {
return;
}