Skip to content

Commit

Permalink
Fix problems caused by previous fix
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasloven committed Jan 7, 2020
1 parent fdc397e commit c2e870a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion layout-card.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c2e870a

Please sign in to comment.