From ae15666e1ace6b5bfdb8c6646f546fd5960b7f00 Mon Sep 17 00:00:00 2001 From: Xaver Maierhofer Date: Fri, 10 Feb 2017 00:56:23 +0100 Subject: [PATCH] [BUGFIX] Map position responsive --- lib/sidebar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sidebar.js b/lib/sidebar.js index e925a49..8a7400d 100644 --- a/lib/sidebar.js +++ b/lib/sidebar.js @@ -27,9 +27,9 @@ define(function () { sidebar.appendChild(container); self.getWidth = function getWidth() { - if (gridBreakpoints.lg[0] < window.innerWidth) { + if (gridBreakpoints.lg[0] > window.innerWidth) { return 0; - } else if (gridBreakpoints.xl[0] < window.innerWidth) { + } else if (gridBreakpoints.xl[0] > window.innerWidth) { return gridBreakpoints.lg[1]; } return gridBreakpoints.xl[1];