Skip to content

Commit

Permalink
Merge pull request #87 from bugy/fix_dropdown_bottom_alignment
Browse files Browse the repository at this point in the history
Dogfalo#6279: fixed aligning of dropdown with coverTrigger=false, when can align bottom
  • Loading branch information
Smankusors authored Apr 22, 2021
2 parents 8254f83 + 0ce4bd3 commit 87f45d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,10 @@
if (!alignments.top) {
if (alignments.bottom) {
verticalAlignment = 'bottom';

if (!this.options.coverTrigger) {
idealYPos -= triggerBRect.height;
}
} else {
this.isScrollable = true;

Expand Down

0 comments on commit 87f45d6

Please sign in to comment.