From be9a57684243001f49713909ad366399a2bb3ab0 Mon Sep 17 00:00:00 2001 From: aignatov-bio <47317017+aignatov-bio@users.noreply.github.com> Date: Mon, 4 Apr 2022 12:10:14 +0200 Subject: [PATCH] Fix reminder dropdown on task screen [SCI-6678] (#3987) Co-authored-by: Anton --- app/assets/javascripts/sitewide/repository_helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/sitewide/repository_helper.js b/app/assets/javascripts/sitewide/repository_helper.js index da4df8ba2..69328bb04 100644 --- a/app/assets/javascripts/sitewide/repository_helper.js +++ b/app/assets/javascripts/sitewide/repository_helper.js @@ -74,7 +74,7 @@ function initReminderDropdown(table) { let screenHeight = screen.height; let rowPosition = row[0].getBoundingClientRect().y; let dropdownMenu = $(this).find('.dropdown-menu'); - if ((screenHeight / 2) < rowPosition) { + if ((screenHeight / 2) < rowPosition && $('.repository-show').length) { dropdownMenu.css({ top: 'unset', bottom: '100%' }); } else { dropdownMenu.css({ bottom: 'unset', top: '100%' });