Fix reminder dropdown on task screen [SCI-6678] (#3987)

Co-authored-by: Anton <anton@scinote.net>
This commit is contained in:
aignatov-bio 2022-04-04 12:10:14 +02:00 committed by GitHub
parent 8d25f456d1
commit be9a576842
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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%' });