mirror of
https://github.com/Choices-js/Choices.git
synced 2024-04-30 13:02:48 +02:00
Minor improvements
This commit is contained in:
parent
851ddea81c
commit
d9cb983262
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue