@vaadin/component-base 24.9.1 → 24.9.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/component-base",
|
|
3
|
-
"version": "24.9.
|
|
3
|
+
"version": "24.9.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"lit": "^3.0.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@vaadin/chai-plugins": "~24.9.
|
|
42
|
-
"@vaadin/test-runner-commands": "~24.9.
|
|
41
|
+
"@vaadin/chai-plugins": "~24.9.3",
|
|
42
|
+
"@vaadin/test-runner-commands": "~24.9.3",
|
|
43
43
|
"@vaadin/testing-helpers": "^1.1.0",
|
|
44
44
|
"sinon": "^18.0.0"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "dbb4c450495cd72e3d8662119e96db60a89f86ea"
|
|
47
47
|
}
|
package/src/define.js
CHANGED
|
@@ -13,7 +13,7 @@ function dashToCamelCase(dash) {
|
|
|
13
13
|
|
|
14
14
|
const experimentalMap = {};
|
|
15
15
|
|
|
16
|
-
export function defineCustomElement(CustomElement, version = '24.9.
|
|
16
|
+
export function defineCustomElement(CustomElement, version = '24.9.3') {
|
|
17
17
|
Object.defineProperty(CustomElement, 'version', {
|
|
18
18
|
get() {
|
|
19
19
|
return version;
|
|
@@ -218,7 +218,16 @@ export class IronListAdapter {
|
|
|
218
218
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
219
219
|
this._iterateItems((pidx, vidx) => {
|
|
220
220
|
oldPhysicalSize += this._physicalSizes[pidx];
|
|
221
|
+
const elementOldPhysicalSize = this._physicalSizes[pidx];
|
|
221
222
|
this._physicalSizes[pidx] = Math.ceil(this.__getBorderBoxHeight(this._physicalItems[pidx]));
|
|
223
|
+
|
|
224
|
+
if (this._physicalSizes[pidx] !== elementOldPhysicalSize) {
|
|
225
|
+
// Physical size changed, but resize observer may not catch it if the original size is restored quickly.
|
|
226
|
+
// See https://github.com/vaadin/web-components/issues/9077
|
|
227
|
+
this.__resizeObserver.unobserve(this._physicalItems[pidx]);
|
|
228
|
+
this.__resizeObserver.observe(this._physicalItems[pidx]);
|
|
229
|
+
}
|
|
230
|
+
|
|
222
231
|
newPhysicalSize += this._physicalSizes[pidx];
|
|
223
232
|
this._physicalAverageCount += this._physicalSizes[pidx] ? 1 : 0;
|
|
224
233
|
}, itemSet);
|