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];