@vaadin/overlay 23.5.1 → 23.5.2

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": "23.5.1",
3
+ "version": "23.5.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -36,20 +36,20 @@
36
36
  "dependencies": {
37
37
  "@open-wc/dedupe-mixin": "^1.3.0",
38
38
  "@polymer/polymer": "^3.0.0",
39
- "@vaadin/component-base": "~23.5.1",
40
- "@vaadin/vaadin-lumo-styles": "~23.5.1",
41
- "@vaadin/vaadin-material-styles": "~23.5.1",
42
- "@vaadin/vaadin-themable-mixin": "~23.5.1"
39
+ "@vaadin/component-base": "~23.5.2",
40
+ "@vaadin/vaadin-lumo-styles": "~23.5.2",
41
+ "@vaadin/vaadin-material-styles": "~23.5.2",
42
+ "@vaadin/vaadin-themable-mixin": "~23.5.2"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@esm-bundle/chai": "^4.3.4",
46
46
  "@polymer/iron-overlay-behavior": "^3.0.0",
47
- "@vaadin/button": "~23.5.1",
48
- "@vaadin/radio-group": "~23.5.1",
47
+ "@vaadin/button": "~23.5.2",
48
+ "@vaadin/radio-group": "~23.5.2",
49
49
  "@vaadin/testing-helpers": "^0.3.2",
50
- "@vaadin/text-field": "~23.5.1",
50
+ "@vaadin/text-field": "~23.5.2",
51
51
  "lit": "^2.0.0",
52
52
  "sinon": "^13.0.2"
53
53
  },
54
- "gitHead": "b27f03ddf7b2cfed03a127f033d62677012eedb8"
54
+ "gitHead": "016f4c0e920f9a3409349b81314d94d36867ccbd"
55
55
  }
@@ -219,6 +219,11 @@ export const PositionMixin = (superClass) =>
219
219
 
220
220
  const targetRect = this.positionTarget.getBoundingClientRect();
221
221
 
222
+ if (targetRect.width === 0 && targetRect.height === 0 && this.opened) {
223
+ this.opened = false;
224
+ return;
225
+ }
226
+
222
227
  // Detect the desired alignment and update the layout accordingly
223
228
  const shouldAlignStartVertically = this.__shouldAlignStartVertically(targetRect);
224
229
  this.style.justifyContent = shouldAlignStartVertically ? 'flex-start' : 'flex-end';