Forum

bootstrap typehead ...
 
Notifications
Clear all

bootstrap typehead - dropdown, global position

   RSS

0
Topic starter

mod

1 Answer
0
Topic starter

1. (warning, modify orginal files, version 0.0.5) open bootstrap-typehead.js
2. find line (~32)

1
that.$menu = $(that.options.menu).insertAfter(that.$element);
      that.$menu = $(that.options.menu).insertAfter(that.$element);

change to

1
that.$menu = $(that.options.menu).appendTo("body");
that.$menu = $(that.options.menu).appendTo("body");

3. find line (~119) and change

1
var pos = $.extend({}, this.$element.position(), {
var pos = $.extend({}, this.$element.position(), {

to

1
var pos = $.extend({}, this.$element.offset(), {
var pos = $.extend({}, this.$element.offset(), {

4. add style

.typeahead {
position:absolute !important;
z-index:10000;
}​

Odpowiedź

Author Name

Author Email

Your question *

 
Preview 0 Revisions Saved
Share: