avoid whitespace and expand all matching section when filtering
This commit is contained in:
parent
8d1e105b50
commit
529c48d1b0
3 changed files with 43 additions and 22 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue