Skip to content

Commit

Permalink
change dropdown max-height calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerwyn committed Nov 21, 2024
1 parent c521c5c commit 5193145
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/custom-features-row.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/classes/custom-feature-dropdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export class CustomFeatureDropdown extends BaseCustomFeature {
);
dropdown.style.setProperty(
'max-height',
`${window.innerHeight - (down ? rect.bottom : rect.top) - edgeOffset}px`,
`${(down ? window.innerHeight - rect.bottom : rect.top) - edgeOffset}px`,
);
} else if (!this.showDropdown) {
setTimeout(() => {
Expand Down

0 comments on commit 5193145

Please sign in to comment.