Skip to content

Commit 408b39f

Browse files
committed
fixed whitespace in changes (tabs -> spaces)
1 parent 313b5fe commit 408b39f

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

js/bootstrap-combobox.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -339,22 +339,22 @@
339339

340340
e.stopPropagation();
341341
}
342-
342+
343343
, fixMenuScroll: function(){
344344
var active = this.$menu.find('.active');
345345
if(active.length){
346-
var top = active.position().top;
347-
var bottom = top + active.height();
348-
var scrollTop = this.$menu.scrollTop();
349-
var menuHeight = this.$menu.height();
350-
if(bottom > menuHeight){
351-
this.$menu.scrollTop(scrollTop + bottom - menuHeight);
352-
} else if(top < 0){
353-
this.$menu.scrollTop(scrollTop + top);
354-
}
346+
var top = active.position().top;
347+
var bottom = top + active.height();
348+
var scrollTop = this.$menu.scrollTop();
349+
var menuHeight = this.$menu.height();
350+
if(bottom > menuHeight){
351+
this.$menu.scrollTop(scrollTop + bottom - menuHeight);
352+
} else if(top < 0){
353+
this.$menu.scrollTop(scrollTop + top);
354+
}
355355
}
356356
}
357-
357+
358358
, keydown: function (e) {
359359
this.suppressKeyPressRepeat = ~$.inArray(e.keyCode, [40,38,9,13,27]);
360360
this.move(e);

0 commit comments

Comments
 (0)