From d978f1b594e814114b160c021a6a15ae2c72bb4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Lov=C3=A9n?= Date: Wed, 3 Apr 2019 18:47:05 +0200 Subject: [PATCH] Fix bugs in 7.1% of all lines of code --- gap-card.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gap-card.js b/gap-card.js index c6594bc..303e805 100644 --- a/gap-card.js +++ b/gap-card.js @@ -2,7 +2,7 @@ class GapCard extends HTMLElement { setConfig(config) { this.height = ('height' in config) ? config.height : 50; - this.size = ('size' in config) ? config.size : Math.ceil(this.size/50); + this.size = ('size' in config) ? config.size : Math.ceil(this.height/50); this.style.setProperty('height', this.height + 'px'); }