* Hide or reveal truncated text based on whether the panel is open. This is normally handled by
* MetadataPanelScroller, but when the panel is reset (e.g. on a prev/next event) sometimes the panel position can change without a panel , such as on a
* prev/next event; in such cases this function has to be called.
*/
resetTruncatedText(){
if(this.scroller.panelIsOpen()){
this.revealTruncatedText();
}else{
this.hideTruncatedText();
}
}
}
/**
* Maximum number of restriction icons before default icon is used