From 3f220cb0e68685bdd2f9c495257e54253322ce69 Mon Sep 17 00:00:00 2001 From: SandyDatatables Date: Fri, 27 Aug 2021 14:36:51 +0000 Subject: [PATCH] fix: Fix fuzzysearch tooltip alignment issue with small screens Jira Issue DD-2128 --- features/fuzzySearch/dataTables.fuzzySearch.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/features/fuzzySearch/dataTables.fuzzySearch.js b/features/fuzzySearch/dataTables.fuzzySearch.js index a490894..e0edc8c 100644 --- a/features/fuzzySearch/dataTables.fuzzySearch.js +++ b/features/fuzzySearch/dataTables.fuzzySearch.js @@ -383,7 +383,7 @@ tooltip .insertAfter(toggle) .on('mouseleave', removeToolTip); - tooltip.css('left', input.offset().left - tooltip.offset().left) + tooltip.css('left', input.position().left + 3) exact.on('click', (event) => highlightButton(exact, event)); fuzzy.on('click', (event) => highlightButton(fuzzy, event)); }) @@ -395,7 +395,7 @@ tooltip .insertAfter(toggle) .on('mouseleave', removeToolTip); - tooltip.css('left', input.offset().left - tooltip.offset().left) + tooltip.css('left', input.position().left + 3) exact.on('click', (event) => highlightButton(exact, event)) fuzzy.on('click', (event) => highlightButton(fuzzy, event)) })