@dhis2-ui/popper 8.5.4 → 8.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -24,7 +24,7 @@ var _steps = require("cypress-cucumber-preprocessor/steps");
|
|
|
24
24
|
let [$reference, $popper] = _ref2;
|
|
25
25
|
const referenceRect = $reference.get(0).getBoundingClientRect();
|
|
26
26
|
const popperRect = $popper.get(0).getBoundingClientRect();
|
|
27
|
-
expect(referenceRect.bottom).to.equal(popperRect.top);
|
|
27
|
+
expect(Math.round(referenceRect.bottom)).to.equal(Math.round(popperRect.top));
|
|
28
28
|
});
|
|
29
29
|
});
|
|
30
30
|
(0, _steps.Then)('the top and left of the popper correspond with the virtualElement', () => {
|
|
@@ -21,7 +21,7 @@ Then('the top of the popper is adjacent to the bottom of the reference element',
|
|
|
21
21
|
let [$reference, $popper] = _ref2;
|
|
22
22
|
const referenceRect = $reference.get(0).getBoundingClientRect();
|
|
23
23
|
const popperRect = $popper.get(0).getBoundingClientRect();
|
|
24
|
-
expect(referenceRect.bottom).to.equal(popperRect.top);
|
|
24
|
+
expect(Math.round(referenceRect.bottom)).to.equal(Math.round(popperRect.top));
|
|
25
25
|
});
|
|
26
26
|
});
|
|
27
27
|
Then('the top and left of the popper correspond with the virtualElement', () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhis2-ui/popper",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.6.1",
|
|
4
4
|
"description": "UI Popper",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@dhis2/prop-types": "^3.1.2",
|
|
35
|
-
"@dhis2/ui-constants": "8.
|
|
35
|
+
"@dhis2/ui-constants": "8.6.1",
|
|
36
36
|
"@popperjs/core": "^2.10.1",
|
|
37
37
|
"classnames": "^2.3.1",
|
|
38
38
|
"prop-types": "^15.7.2",
|