mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-21 06:56:34 +02:00
Minor improvements
This commit is contained in:
parent
851ddea81c
commit
d9cb983262
|
@ -559,8 +559,8 @@ export class Choices {
|
||||||
scrollToOption(option, direction) {
|
scrollToOption(option, direction) {
|
||||||
if(!option) return;
|
if(!option) return;
|
||||||
|
|
||||||
const dropdownHeight = this.optionList.offsetHeight;
|
const dropdownHeight = this.optionList.offsetHeight;
|
||||||
const optionHeight = option.offsetHeight;
|
const optionHeight = option.offsetHeight;
|
||||||
|
|
||||||
// Distance from bottom of element to top of parent
|
// Distance from bottom of element to top of parent
|
||||||
const optionPos = option.offsetTop + optionHeight;
|
const optionPos = option.offsetTop + optionHeight;
|
||||||
|
|
Loading…
Reference in a new issue