Ticket #5153: jquery-autocomplete-position-patch.diff
File jquery-autocomplete-position-patch.diff, 770 bytes (added by , 12 years ago) |
---|
-
ui/jquery.ui.autocomplete.js
17 17 $.widget( "ui.autocomplete", { 18 18 options: { 19 19 minLength: 1, 20 delay: 300 20 delay: 300, 21 position: {} 21 22 }, 22 23 _create: function() { 23 24 var self = this; … … 119 120 .zIndex( this.element.zIndex() + 1 ) 120 121 // workaround for jQuery bug #5781 http://dev.jquery.com/ticket/5781 121 122 .css({ top: 0, left: 0 }) 122 .position( {123 .position($.extend({ 123 124 my: "left top", 124 125 at: "left bottom", 125 126 of: this.element, 126 127 collision: "none" 127 } )128 }, self.options.position)) 128 129 .hide() 129 130 .data( "menu" ); 130 131 if ( $.fn.bgiframe ) {