Merge pull request #2670 from aignatov-bio/ai-sci-4745-fix-manage-column-dropdown-position

Fix dropdown position for full-screen modals [SCI-4745]
This commit is contained in:
Miha Mencin 2020-06-29 09:43:13 +02:00 committed by GitHub
commit 6db1401759
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;