[BUGFIX] Map position responsive

This commit is contained in:
Xaver Maierhofer 2017-02-10 00:56:23 +01:00
parent 8c4978172b
commit ae15666e1a
No known key found for this signature in database
GPG Key ID: 7FDCE23FD2EC9FE8
1 changed files with 2 additions and 2 deletions

View File

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