select2 / select2-bootstrap-theme

A Select2 v4 Theme for Bootstrap 3
https://select2.github.io/select2-bootstrap-theme/
MIT License
872 stars 499 forks source link

Dropdown misalignment on 100% width and jQuery 1.* #78

Closed ivansammartino closed 6 years ago

ivansammartino commented 6 years ago

Hello, I noticed that, with jQuery 1. (i.e.1.9.) and given a select width of 100% for responsiveness, you could end up with dropdown misalignment (both on load OR when the window is resized) - jsFiddle here

misalignment

This doesn't happen:

  1. when the width is omitted: fiddle
  2. using jQuery 3.*: fiddle

The problem is also clearer with Bootstrap theme: fiddle - resize window to watch misalignment happen

misalignment-bootstrap

Are there specific issues with jQuery 1.* versions? Thanks

ivansammartino commented 6 years ago

Sorry, I thought I was on Select2 GitHub, since this affects the original plugin and not only the Bootstrap version. Closing right now.