You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you use append-to-body the default implementation for calculatePosition calculates the width of the dropdownList like this:
context.$refs.toggle.clientWidth + 'px'
The problem with that is that it doesn't seem to take into consideration the padding and borders of the toggle element. Instead we should use the width value you already have available because of the getBoundingClientRect() you use for the top and left positions.
The text was updated successfully, but these errors were encountered:
tochoromero
added a commit
to tochoromero/vue-select
that referenced
this issue
Mar 17, 2020
When you use
append-to-body
the default implementation forcalculatePosition
calculates the width of the dropdownList like this:context.$refs.toggle.clientWidth + 'px'
The problem with that is that it doesn't seem to take into consideration the padding and borders of the toggle element. Instead we should use the
width
value you already have available because of thegetBoundingClientRect()
you use for thetop
andleft
positions.The text was updated successfully, but these errors were encountered: