Skip to content

Commit

Permalink
Merge pull request #26 from nikolai-katkov/patch-1
Browse files Browse the repository at this point in the history
fix select dropdown width
  • Loading branch information
inferpse committed Apr 28, 2016
2 parents 79ec1a8 + 7e88fbe commit 4bc2847
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/jcf.select.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,8 @@ jcf.addModule(function($, window) {
},
repositionDropdown: function() {
var selectOffset = this.fakeElement.offset(),
selectWidth = this.fakeElement.outerWidth(),
fakeElementBounds = this.fakeElement[0].getBoundingClientRect(),
selectWidth = fakeElementBounds.width || fakeElementBounds.right - fakeElementBounds.left,
selectHeight = this.fakeElement.outerHeight(),
dropHeight = this.dropdown.css('width', selectWidth).outerHeight(),
winScrollTop = this.win.scrollTop(),
Expand Down

0 comments on commit 4bc2847

Please sign in to comment.