Skip to content

Commit

Permalink
[#2792] Fix the width of the autocomplete boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
aron committed Aug 2, 2012
1 parent 155fdf1 commit 2795424
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions ckan/public/base/javascript/modules/autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ this.ckan.module('autocomplete', function (jQuery, _) {
*/
setupAutoComplete: function () {
var settings = {
width: 'resolve',
formatResult: this.formatResult,
formatNoMatches: this.formatNoMatches,
formatInputTooShort: this.formatInputTooShort
Expand Down
2 changes: 2 additions & 0 deletions ckan/public/base/test/spec/modules/autocomplete.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ describe('ckan.modules.AutocompleteModule()', function () {

assert.called(this.select2);
assert.calledWith(this.select2, {
width: 'resolve',
query: this.module._onQuery,
formatResult: this.module.formatResult,
formatNoMatches: this.module.formatNoMatches,
Expand All @@ -72,6 +73,7 @@ describe('ckan.modules.AutocompleteModule()', function () {

assert.called(this.select2);
assert.calledWith(this.select2, {
width: 'resolve',
tags: this.module._onQuery,
formatResult: this.module.formatResult,
formatNoMatches: this.module.formatNoMatches,
Expand Down

0 comments on commit 2795424

Please sign in to comment.