From de5ce9e401ff5d36e09228effd16d502f5a4a76a Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Mon, 3 Nov 2014 17:13:23 +0200 Subject: Fixes #121 - Large part of map unclickable due to autocomplete suggestions See http://stackoverflow.com/questions/5643767/jquery-ui-autocomplete-width-not-set-correctly/11845718#11845718 A relevant bug on jquery-ui for width: http://bugs.jqueryui.com/ticket/7303 Additionally I considered measuring the exact width before noticing I can set the width to 10px and the text itself is perfectly clickable, see: http://stackoverflow.com/questions/6961022/measure-bounding-box-of-text-node-in-javascript --- scripts/textanalysis.ui.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/textanalysis.ui.js b/scripts/textanalysis.ui.js index 2eadff0b..0bd06cbf 100644 --- a/scripts/textanalysis.ui.js +++ b/scripts/textanalysis.ui.js @@ -74,7 +74,10 @@ return { element.autocompleteTrigger({ triggerStart: '#', triggerEnd: '', - source: textanalysis.autocompleteCallback + source: textanalysis.autocompleteCallback, + open: function() { + $('.ui-autocomplete').css('width', '10px'); + } }); $(document).keydown(function(e) { -- cgit v1.3.1