Skip to content

Commit 0c086f9

Browse files
authored
Merge pull request #5 from seanvm/fix_moveToSelected
Fix moveToSelected()
2 parents ae50883 + 13df733 commit 0c086f9

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

jquery.fontselect.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,6 @@
279279
this.$element.removeClass('font-select-active');
280280
this.$drop.hide();
281281
clearInterval(this.visibleInterval);
282-
283282
} else {
284283
this.$element.addClass('font-select-active');
285284
this.$drop.show();
@@ -307,8 +306,8 @@
307306
} else {
308307
$li = $("li", this.$results).first();
309308
}
310-
311-
this.$results.scrollTop($li.addClass('active').position().top);
309+
310+
this.$results.scrollTop($li.addClass('active')[0].offsetTop);
312311
};
313312

314313
Fontselect.prototype.activateFont = function(ev){

jquery.fontselect.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fontselect-jquery-plugin",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "A jQuery font selector for Google Web Fonts",
55
"main": "jquery.fontselect.js",
66
"directories": {

0 commit comments

Comments
 (0)