Fix weird nm column sizing in infolog.

Depending on favorite settings, changing favorite (or 'No filters') caused incorrect column sizing in nm list
This commit is contained in:
nathan 2023-03-16 16:15:35 -06:00
parent 4993beef08
commit 0b8c108279

View File

@ -739,7 +739,24 @@ export class et2_nextmatch extends et2_DOMWidget implements et2_IResizeable, et2
}
}
// Wait a bit. header.setFilters() can cause webComponents to update, so we want to wait for that
let wait = [];
this.iterateOver(w =>
{
if(typeof w.updateComplete != "undefined")
{
wait.push(w.updateComplete);
}
}, this);
setTimeout(() =>
{
// It needs a little longer than just the updateComplete, not sure why.
// Turning it off too soon causes problems with app.infolog.filter2_change
Promise.allSettled(wait).then(() =>
{
this.update_in_progress = false;
});
}, 100);
}
/**