mirror of
https://github.com/rickbarrette/redmine_qbo_lineitems.git
synced 2026-11-17 19:20:36 -05:00
Keep item suggestions on screen and stop the page sliding sideways on phones
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3725f27d05
commit
6f459c7016
2 files changed
+22
-1
No files matched your search
@@ -10,6 +10,10 @@
|
||||
let ac = $(this).autocomplete({
|
||||
appendTo: "body",
|
||||
minLength: 2,
|
||||
// Kept on screen: on a phone a wide list of suggestions widened the page, which could leave the page
|
||||
// stuck scrolled to the side
|
||||
classes: { "ui-autocomplete": "line-item-suggestions" },
|
||||
position: { my: "left top", at: "left bottom", collision: "flipfit" },
|
||||
|
||||
source: function(request, response) {
|
||||
$.getJSON("/items/autocomplete", { q: request.term })
|
||||
|
||||
Reference in new issue
Block a user