@vaadin/overlay 25.1.1 → 25.1.3

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": "25.1.1",
3
+ "version": "25.1.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -34,19 +34,19 @@
34
34
  ],
35
35
  "dependencies": {
36
36
  "@open-wc/dedupe-mixin": "^1.3.0",
37
- "@vaadin/a11y-base": "~25.1.1",
38
- "@vaadin/component-base": "~25.1.1",
39
- "@vaadin/vaadin-themable-mixin": "~25.1.1",
37
+ "@vaadin/a11y-base": "~25.1.3",
38
+ "@vaadin/component-base": "~25.1.3",
39
+ "@vaadin/vaadin-themable-mixin": "~25.1.3",
40
40
  "lit": "^3.0.0"
41
41
  },
42
42
  "devDependencies": {
43
- "@vaadin/aura": "~25.1.1",
44
- "@vaadin/chai-plugins": "~25.1.1",
45
- "@vaadin/test-runner-commands": "~25.1.1",
43
+ "@vaadin/aura": "~25.1.3",
44
+ "@vaadin/chai-plugins": "~25.1.3",
45
+ "@vaadin/test-runner-commands": "~25.1.3",
46
46
  "@vaadin/testing-helpers": "^2.0.0",
47
- "@vaadin/vaadin-lumo-styles": "~25.1.1",
47
+ "@vaadin/vaadin-lumo-styles": "~25.1.3",
48
48
  "sinon": "^21.0.2"
49
49
  },
50
50
  "customElements": "custom-elements.json",
51
- "gitHead": "2687401ae7636c5ba38573b1f3d3ad62caf80513"
51
+ "gitHead": "6faa3dbd92204cfda519d0146de376084234f560"
52
52
  }
@@ -145,6 +145,12 @@ export const PositionMixin = (superClass) =>
145
145
  if (props.has('positionTarget')) {
146
146
  const oldTarget = props.get('positionTarget');
147
147
 
148
+ // Invalidate the cached content size so the next `_updatePosition` call
149
+ // measures the overlay against the new target instead of carrying over
150
+ // a larger size from the previous one.
151
+ this.__oldContentWidth = undefined;
152
+ this.__oldContentHeight = undefined;
153
+
148
154
  // 1. When position target is removed, always reset position settings
149
155
  // 2. When position target is set, reset if overlay was opened before
150
156
  if ((!this.positionTarget && oldTarget) || (this.positionTarget && !oldTarget && !!this.__margins)) {