Skip to content

Commit

Permalink
more spacing check when expanding to the bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
wouter-willems committed Jan 12, 2024
1 parent 2809329 commit e565d8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion projects/klippa/ngx-enhancy-forms/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@klippa/ngx-enhancy-forms",
"version": "14.11.4",
"version": "14.11.5",
"publishConfig": {
"access": "public"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ export class SelectComponent extends ValueAccessorBase<string | string[]> 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';
Expand Down

0 comments on commit e565d8b

Please sign in to comment.