Commit ef8c49f
* Fix of issue 550 Select2 and CSS Transforms: dropdown menu is off position: https://github.com/ivaynberg/select2/issues/550
jquery offset() returns incorrect value when ancestor container has css transform applied to it, causing dropdown to appear in incorrect position.
Using { top: variable.offsetTop, left: variable.offsetLeft } instead of variable.offset() fixes this issue
Signed-off-by: Igor Vaynberg <igor.vaynberg@gmail.com>1 parent 6c9aef4 commit ef8c49f
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
976 | 976 | | |
977 | 977 | | |
978 | 978 | | |
979 | | - | |
| 979 | + | |
980 | 980 | | |
981 | 981 | | |
982 | 982 | | |
| |||
0 commit comments