@vaadin/overlay 24.3.13 → 24.3.15
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/overlay",
|
|
3
|
-
"version": "24.3.
|
|
3
|
+
"version": "24.3.15",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
38
38
|
"@polymer/polymer": "^3.0.0",
|
|
39
|
-
"@vaadin/a11y-base": "~24.3.
|
|
40
|
-
"@vaadin/component-base": "~24.3.
|
|
41
|
-
"@vaadin/vaadin-lumo-styles": "~24.3.
|
|
42
|
-
"@vaadin/vaadin-material-styles": "~24.3.
|
|
43
|
-
"@vaadin/vaadin-themable-mixin": "~24.3.
|
|
39
|
+
"@vaadin/a11y-base": "~24.3.15",
|
|
40
|
+
"@vaadin/component-base": "~24.3.15",
|
|
41
|
+
"@vaadin/vaadin-lumo-styles": "~24.3.15",
|
|
42
|
+
"@vaadin/vaadin-material-styles": "~24.3.15",
|
|
43
|
+
"@vaadin/vaadin-themable-mixin": "~24.3.15"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@esm-bundle/chai": "^4.3.4",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"lit": "^3.0.0",
|
|
49
49
|
"sinon": "^13.0.2"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "d9797c9341344d49bcf26cc74af6a9bf91615c7a"
|
|
52
52
|
}
|
|
@@ -220,6 +220,11 @@ export const PositionMixin = (superClass) =>
|
|
|
220
220
|
|
|
221
221
|
const targetRect = this.positionTarget.getBoundingClientRect();
|
|
222
222
|
|
|
223
|
+
if (targetRect.width === 0 && targetRect.height === 0 && this.opened) {
|
|
224
|
+
this.opened = false;
|
|
225
|
+
return;
|
|
226
|
+
}
|
|
227
|
+
|
|
223
228
|
// Detect the desired alignment and update the layout accordingly
|
|
224
229
|
const shouldAlignStartVertically = this.__shouldAlignStartVertically(targetRect);
|
|
225
230
|
this.style.justifyContent = shouldAlignStartVertically ? 'flex-start' : 'flex-end';
|