diff --git a/test/board-element.html b/test/board-element.html new file mode 100644 index 0000000..24c591b --- /dev/null +++ b/test/board-element.html @@ -0,0 +1,23 @@ + + + + + + + + + \ No newline at end of file diff --git a/test/index.html b/test/index.html index 9d35032..1dabfd9 100644 --- a/test/index.html +++ b/test/index.html @@ -20,7 +20,8 @@ 'vaadin-board_media-queries.html', 'vaadin-board_redraw_test.html', 'vaadin-board_style.html', - 'vaadin-board_test.html' + 'vaadin-board_test.html', + 'vaadin-board_slot_test.html' ]; /** diff --git a/test/outer.html b/test/outer.html new file mode 100644 index 0000000..e6555a4 --- /dev/null +++ b/test/outer.html @@ -0,0 +1,25 @@ + + + + + + + \ No newline at end of file diff --git a/test/vaadin-board_slot_test.html b/test/vaadin-board_slot_test.html new file mode 100644 index 0000000..4ee74d2 --- /dev/null +++ b/test/vaadin-board_slot_test.html @@ -0,0 +1,71 @@ + + + + + + + vaadin-board slot` test + + + + + + + + + + + + + + + + + + + + + diff --git a/vaadin-board-row.html b/vaadin-board-row.html index 87d063a..df7ade3 100644 --- a/vaadin-board-row.html +++ b/vaadin-board-row.html @@ -171,7 +171,7 @@ _recalculateFlexBasis(forceResize) { const width = this.getBoundingClientRect().width; if (forceResize || width != this._oldWidth) { - const nodes = this.$.insertionPoint.assignedNodes(); + const nodes = this.$.insertionPoint.assignedNodes({flatten: true}); const filteredNodes = nodes.filter(node => node.nodeType !== node.TEXT_NODE); this._addStyleNames(width);