@vaadin/grid 23.0.0-alpha4 → 23.0.0-alpha5

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/grid",
3
- "version": "23.0.0-alpha4",
3
+ "version": "23.0.0-alpha5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -41,19 +41,19 @@
41
41
  "dependencies": {
42
42
  "@open-wc/dedupe-mixin": "^1.3.0",
43
43
  "@polymer/polymer": "^3.0.0",
44
- "@vaadin/checkbox": "23.0.0-alpha4",
45
- "@vaadin/component-base": "23.0.0-alpha4",
46
- "@vaadin/text-field": "23.0.0-alpha4",
47
- "@vaadin/vaadin-lumo-styles": "23.0.0-alpha4",
48
- "@vaadin/vaadin-material-styles": "23.0.0-alpha4",
49
- "@vaadin/vaadin-themable-mixin": "23.0.0-alpha4"
44
+ "@vaadin/checkbox": "23.0.0-alpha5",
45
+ "@vaadin/component-base": "23.0.0-alpha5",
46
+ "@vaadin/text-field": "23.0.0-alpha5",
47
+ "@vaadin/vaadin-lumo-styles": "23.0.0-alpha5",
48
+ "@vaadin/vaadin-material-styles": "23.0.0-alpha5",
49
+ "@vaadin/vaadin-themable-mixin": "23.0.0-alpha5"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@esm-bundle/chai": "^4.3.4",
53
- "@vaadin/polymer-legacy-adapter": "23.0.0-alpha4",
53
+ "@vaadin/polymer-legacy-adapter": "23.0.0-alpha5",
54
54
  "@vaadin/testing-helpers": "^0.3.2",
55
55
  "lit": "^2.0.0",
56
56
  "sinon": "^9.2.0"
57
57
  },
58
- "gitHead": "81e2deee5147bb7c1f4884760f4598613306f1fb"
58
+ "gitHead": "74f9294964eb8552d96578c14af6ad214f5257bc"
59
59
  }
@@ -449,6 +449,10 @@ export const ColumnBaseMixin = (superClass) =>
449
449
  }
450
450
 
451
451
  cells.forEach((cell) => {
452
+ if (!cell.parentElement) {
453
+ return;
454
+ }
455
+
452
456
  const model = this._grid.__getRowModel(cell.parentElement);
453
457
 
454
458
  if (!renderer) {
@@ -584,6 +584,9 @@ class Grid extends ElementMixin(
584
584
  * @private
585
585
  */
586
586
  _recalculateColumnWidths(cols) {
587
+ // Flush to make sure DOM is up-to-date when measuring the column widths
588
+ this.__virtualizer.flush();
589
+
587
590
  cols.forEach((col) => {
588
591
  col.width = `${this.__getDistributedWidth(col)}px`;
589
592
  });