From c7ad887cdebc3bc45221b13d6761be9fca462778 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Mon, 23 Dec 2019 11:22:11 -0500 Subject: [PATCH] [F] Fix width detection order --- src/responsive.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/responsive.ts b/src/responsive.ts index 58d76a6..834d94b 100644 --- a/src/responsive.ts +++ b/src/responsive.ts @@ -16,7 +16,7 @@ export default class Responsive if (currentWidth < vhToPx(this.margin) * 2 + this.minWidth) return 1; // Loop through all the possible numbers on screen - [1, 2, 3, 4, 5, 6].forEach(i => + [1, 2, 3, 4, 5, 6].reverse().forEach(i => { // Calculate margin width let margins = vhToPx(this.margin) * (i + 1);