From 847c963c1ded6c9a05f79e3c1d006df4a7ccda5b Mon Sep 17 00:00:00 2001 From: SandyDatatables Date: Fri, 27 Aug 2021 13:48:21 +0000 Subject: [PATCH] fix: Fix issue with search box moving to the left when fuzzysearch toggleSmart enabled Jira Issue DD-2128 --- features/fuzzySearch/dataTables.fuzzySearch.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/features/fuzzySearch/dataTables.fuzzySearch.js b/features/fuzzySearch/dataTables.fuzzySearch.js index 7885a94..7911570 100644 --- a/features/fuzzySearch/dataTables.fuzzySearch.js +++ b/features/fuzzySearch/dataTables.fuzzySearch.js @@ -254,9 +254,10 @@ fuzzy =$('') .insertAfter(input) .css(toggleCSS); - input.css({ - 'padding-right': '30px' - }); + input.css({ + 'padding-right': '30px' + }); + $(input.parent()).css('right', '-33px').css('position', 'relative'); label = $('
Search Type
').css({'padding-bottom': '0.5em', 'font-size': '0.8em'}) tooltip = $('
') .css({