Commit 1747caf1 authored by fat's avatar fat
Browse files

insert menu of typeahead after input which it suggests on #3529

note: this will likely break things for people in the same way that doing
this to tooltip did… however we think this is a better insertion model for
z-index,scrolling,modal,etc. applications
parent 43765403
No related merge requests found
Showing with 7 additions and 7 deletions
+7 -7
......@@ -33,7 +33,7 @@
this.sorter = this.options.sorter || this.sorter
this.highlighter = this.options.highlighter || this.highlighter
this.updater = this.options.updater || this.updater
this.$menu = $(this.options.menu).appendTo('body')
this.$menu = $(this.options.menu).insertAfter(this.$element)
this.source = this.options.source
this.shown = false
this.listen()
......@@ -56,7 +56,7 @@
}
, show: function () {
var pos = $.extend({}, this.$element.offset(), {
var pos = $.extend({}, this.$element.position(), {
height: this.$element[0].offsetHeight
})
......
......@@ -1752,7 +1752,7 @@
this.sorter = this.options.sorter || this.sorter
this.highlighter = this.options.highlighter || this.highlighter
this.updater = this.options.updater || this.updater
this.$menu = $(this.options.menu).appendTo('body')
this.$menu = $(this.options.menu).insertAfter(this.$element)
this.source = this.options.source
this.shown = false
this.listen()
......@@ -1775,7 +1775,7 @@
}
, show: function () {
var pos = $.extend({}, this.$element.offset(), {
var pos = $.extend({}, this.$element.position(), {
height: this.$element[0].offsetHeight
})
......
This diff is collapsed.
......@@ -33,7 +33,7 @@
this.sorter = this.options.sorter || this.sorter
this.highlighter = this.options.highlighter || this.highlighter
this.updater = this.options.updater || this.updater
this.$menu = $(this.options.menu).appendTo('body')
this.$menu = $(this.options.menu).insertAfter(this.$element)
this.source = this.options.source
this.shown = false
this.listen()
......@@ -56,7 +56,7 @@
}
, show: function () {
var pos = $.extend({}, this.$element.offset(), {
var pos = $.extend({}, this.$element.position(), {
height: this.$element[0].offsetHeight
})
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment