fix: Fix issue with search box moving to the left when fuzzysearch toggleSmart enabled

Jira Issue DD-2128
pull/529/head
SandyDatatables 3 years ago
parent 246273745c
commit 847c963c1d

@ -254,9 +254,10 @@
fuzzy =$('<button class="toggleSearch">Fuzzy</button>') fuzzy =$('<button class="toggleSearch">Fuzzy</button>')
.insertAfter(input) .insertAfter(input)
.css(toggleCSS); .css(toggleCSS);
input.css({ input.css({
'padding-right': '30px' 'padding-right': '30px'
}); });
$(input.parent()).css('right', '-33px').css('position', 'relative');
label = $('<div>Search Type<div>').css({'padding-bottom': '0.5em', 'font-size': '0.8em'}) label = $('<div>Search Type<div>').css({'padding-bottom': '0.5em', 'font-size': '0.8em'})
tooltip = $('<div class="fuzzyToolTip"></div>') tooltip = $('<div class="fuzzyToolTip"></div>')
.css({ .css({

Loading…
Cancel
Save