From 7db164aac90b954d3337113de085ef683129cee9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Lov=C3=A9n?= Date: Sun, 11 Nov 2018 21:17:28 +0100 Subject: [PATCH] Fix embarasing mistake. Don't look at the diff - there's nothing interesting there. Promise --- layout-card.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout-card.js b/layout-card.js index 3a4573d..e72d7f9 100644 --- a/layout-card.js +++ b/layout-card.js @@ -69,7 +69,7 @@ class LayoutCard extends Polymer.Element { numcols = Math.max(1, this.$ ? Math.floor(this.$.columns.clientWidth/this.config.column_width) : 0); } - numcols = Math.max(numcols, this.config.max_columns); + numcols = Math.min(numcols, this.config.max_columns); if(numcols != this.colnum) { this.colnum = numcols; this._build();