Skip to content

Commit

Permalink
Updated Selectivity.js version
Browse files Browse the repository at this point in the history
  • Loading branch information
msx2 committed May 13, 2015
1 parent 995a1d4 commit ac612da
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vendor/assets/javascripts/selectivity.js
Original file line number Diff line number Diff line change
Expand Up @@ -3219,10 +3219,11 @@ function MultipleSelectivity(options) {
openUpwards = (typeof window !== 'undefined' && bottom > $(window).height() &&
top - dropdownHeight > 0);

var width = $selectEl.outerWidth ? $selectEl.outerWidth() : $selectEl.width();
$el.css({
left: position.left + 'px',
top: position.top + (openUpwards ? -dropdownHeight : selectHeight) + 'px'
}).width($selectEl.width());
}).width(width);
};
}
}
Expand Down Expand Up @@ -3766,10 +3767,11 @@ function SingleSelectivity(options) {
deltaUp = Math.min(Math.max(bottom - $(window).height(), 0), top + selectHeight);
}

var width = $selectEl.outerWidth ? $selectEl.outerWidth() : $selectEl.width();
$el.css({
left: position.left + 'px',
top: (position.top + selectHeight - deltaUp) + 'px'
}).width($selectEl.width());
}).width(width);
};
}

Expand Down

0 comments on commit ac612da

Please sign in to comment.