[HIMA-1044] Remission dropdown filter style adjustment

This commit is contained in:
Mikuta Aleksandras
2020-04-03 13:01:30 +02:00
parent dce7a73da1
commit 6f420636e4

View File

@@ -414,10 +414,10 @@ export class RemissionFilterItemComponent implements OnInit, OnDestroy, AfterVie
if (this.expanded && this.windowHeight && this.filterItem) {
const b = this.filterItem.nativeElement.getBoundingClientRect().bottom;
const h = this.windowHeight - b - 85;
this.renderer.setStyle(this.filterList.nativeElement, 'height', `${h}px`);
this.renderer.setStyle(this.filterList.nativeElement, 'max-height', `${h}px`);
return;
}
this.renderer.removeStyle(this.filterList.nativeElement, 'height');
this.renderer.removeStyle(this.filterList.nativeElement, 'max-height');
}
public closeNotCurrentFilters(id: string) {