Minor improvements

This commit is contained in:
Josh Johnson 2016-06-02 14:41:53 +01:00
parent 851ddea81c
commit d9cb983262

View file

@ -559,8 +559,8 @@ export class Choices {
scrollToOption(option, direction) {
if(!option) return;
const dropdownHeight = this.optionList.offsetHeight;
const optionHeight = option.offsetHeight;
const dropdownHeight = this.optionList.offsetHeight;
const optionHeight = option.offsetHeight;
// Distance from bottom of element to top of parent
const optionPos = option.offsetTop + optionHeight;