@tilde-nlp/ngx-common 8.0.4 → 8.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3559,10 +3559,12 @@ class FilterBarComponent {
|
|
|
3559
3559
|
setPanelWidth(filter) {
|
|
3560
3560
|
// We must save panel width, so filtering does not affect it`s size.
|
|
3561
3561
|
const selectPanel = document.querySelector('.cdk-overlay-pane');
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3562
|
+
setTimeout(() => {
|
|
3563
|
+
const selectPanelWidth = selectPanel.clientWidth;
|
|
3564
|
+
const filterObj = this.settings.filters?.find((item) => item.fieldName === filter.fieldName);
|
|
3565
|
+
filterObj.maxPanelWidth = selectPanelWidth;
|
|
3566
|
+
selectPanel.style.minWidth = `${selectPanelWidth}px`;
|
|
3567
|
+
});
|
|
3566
3568
|
}
|
|
3567
3569
|
emitFilters() {
|
|
3568
3570
|
this.filterBarChange.next(this.filters);
|