Merged in bugfix/sprint-16-alex (pull request #1257)

[HIMA-1044] Remission dropdown filter style adjustment
This commit is contained in:
Aleksandras Mikuta
2020-04-03 11:03:35 +00:00

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) {