Fix dropdown position for full screen modals

This commit is contained in:
aignatov-bio 2020-06-18 13:29:28 +02:00
parent f8a48946c6
commit 7f9af06f78

View file

@ -65,7 +65,7 @@ var dropdownSelector = (function() {
var maxHeight = 0;
const bottomTreshold = 280;
if (modalContainer.length && windowHeight - modalContainer.height() > bottomTreshold) {
if (modalContainer.length && windowHeight !== modalContainer.height()) {
let modalClientRect = modalContainer[0].getBoundingClientRect();
windowHeight = modalContainer.height() + modalClientRect.top;
containerPositionLeft -= modalClientRect.left;