Fix problems caused by previous fix

This commit is contained in:
Thomas Lovén 2020-01-07 23:29:21 +01:00
parent fdc397e544
commit c2e870a2d8
2 changed files with 5 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -94,6 +94,10 @@ class LayoutCard extends LitElement {
place_cards(width) {
if(this._config.layout === "grid")
return;
if(width !== undefined)
this.lastWidth = width;
else
width = this.lastWidth;
this.columns = buildLayout(
this.cards,
width || 1,