fix: Fix fuzzysearch tooltip alignment issue with small screens

Jira Issue DD-2128
pull/529/head
SandyDatatables 3 years ago
parent 139ca488ff
commit 3f220cb0e6

@ -383,7 +383,7 @@
tooltip tooltip
.insertAfter(toggle) .insertAfter(toggle)
.on('mouseleave', removeToolTip); .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)); exact.on('click', (event) => highlightButton(exact, event));
fuzzy.on('click', (event) => highlightButton(fuzzy, event)); fuzzy.on('click', (event) => highlightButton(fuzzy, event));
}) })
@ -395,7 +395,7 @@
tooltip tooltip
.insertAfter(toggle) .insertAfter(toggle)
.on('mouseleave', removeToolTip); .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)) exact.on('click', (event) => highlightButton(exact, event))
fuzzy.on('click', (event) => highlightButton(fuzzy, event)) fuzzy.on('click', (event) => highlightButton(fuzzy, event))
}) })

Loading…
Cancel
Save