From 82730fe22d4ef099abe3bb3573fa40e33f7ce86f Mon Sep 17 00:00:00 2001 From: Antonella Sgarlatta Date: Wed, 19 May 2021 16:19:31 -0300 Subject: [PATCH] fix: take footer height into account when checking need for tag menu max height --- app/assets/javascripts/components/NotesOptions.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/components/NotesOptions.tsx b/app/assets/javascripts/components/NotesOptions.tsx index aa64a655e..5bca358e1 100644 --- a/app/assets/javascripts/components/NotesOptions.tsx +++ b/app/assets/javascripts/components/NotesOptions.tsx @@ -68,7 +68,7 @@ export const NotesOptions = observer( const { offsetTop, offsetWidth } = tagsButtonRef.current; const footerHeight = 32; - if (buttonRect.top + maxTagsMenuSize > clientHeight) { + if (buttonRect.top + maxTagsMenuSize > clientHeight - footerHeight) { setTagsMenuMaxHeight(clientHeight - buttonRect.top - footerHeight - 2); }