b5a4698250
This adds a regression test that verifies the problem with positioning the dropdown when the parent is a statically positioned element that still has an offset. This could typically be seen if the body element has an offset, which unfortunately it almost always does because of the default user stylesheet in browsers. This was not caught during pre-release testing because all of the test pages reset the margins and padding on the body element. This regression test verifies that the offsets that should be set for the dropdown are calculated correctly. These were surprisingly difficult to do because of how the offset is calculated using different positioning techniques. These tests are for https://github.com/select2/select2/issues/3970 |
||
---|---|---|
.. | ||
a11y | ||
data | ||
dropdown | ||
integration | ||
options | ||
selection | ||
utils | ||
vendor | ||
helpers.js | ||
integration.html | ||
unit.html |