From 30c6715e1ad75c43c71aa0d8892dd1431b0e53e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20D=C4=99bi=C5=84ski?= <58430570+mateuszdebinski@users.noreply.github.com> Date: Fri, 1 Sep 2023 14:47:40 +0200 Subject: [PATCH] IBX-6451: Calculating the size of the dropdown element has been changed (#2110) --- .../Resources/public/js/scripts/core/custom.dropdown.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bundle/Resources/public/js/scripts/core/custom.dropdown.js b/src/bundle/Resources/public/js/scripts/core/custom.dropdown.js index c2d7c86801..5b96d12971 100644 --- a/src/bundle/Resources/public/js/scripts/core/custom.dropdown.js +++ b/src/bundle/Resources/public/js/scripts/core/custom.dropdown.js @@ -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;