Skip to content

Commit

Permalink
IBX-6451: Calculating the size of the dropdown element has been chang…
Browse files Browse the repository at this point in the history
…ed (#2110)
  • Loading branch information
mateuszdebinski authored Sep 1, 2023
1 parent bbdb914 commit 30c6715
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@
}

if (this.itemsContainer.closest(SELECTOR_MODAL)) {
return itemsContainerTop - DROPDOWN_MARGIN;
const modalHeight = this.itemsContainer.closest('.modal-content').getBoundingClientRect().height;

return modalHeight - itemsContainerTop;
}

return documentElementHeight - itemsContainerTop - DROPDOWN_MARGIN;
Expand Down

0 comments on commit 30c6715

Please sign in to comment.