From e565d8b7def6d2661d0cb2ac67cecde830898bd7 Mon Sep 17 00:00:00 2001 From: Wouter Willems Date: Fri, 12 Jan 2024 16:24:52 +0100 Subject: [PATCH] more spacing check when expanding to the bottom --- projects/klippa/ngx-enhancy-forms/package.json | 2 +- .../src/lib/elements/select/select.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/klippa/ngx-enhancy-forms/package.json b/projects/klippa/ngx-enhancy-forms/package.json index 1ed29cd..69b8baf 100644 --- a/projects/klippa/ngx-enhancy-forms/package.json +++ b/projects/klippa/ngx-enhancy-forms/package.json @@ -1,6 +1,6 @@ { "name": "@klippa/ngx-enhancy-forms", - "version": "14.11.4", + "version": "14.11.5", "publishConfig": { "access": "public" }, diff --git a/projects/klippa/ngx-enhancy-forms/src/lib/elements/select/select.component.ts b/projects/klippa/ngx-enhancy-forms/src/lib/elements/select/select.component.ts index c12de93..a09a2b9 100644 --- a/projects/klippa/ngx-enhancy-forms/src/lib/elements/select/select.component.ts +++ b/projects/klippa/ngx-enhancy-forms/src/lib/elements/select/select.component.ts @@ -251,7 +251,7 @@ export class SelectComponent extends ValueAccessorBase implem private determineDropdownPosition(): void { const bottomSpace = window.innerHeight - this.elRef.nativeElement.getBoundingClientRect().top; - if (bottomSpace >= 300) { + if (bottomSpace >= 330) { this.dropdownPositionToUse = 'bottom'; } else { this.dropdownPositionToUse = 'top';