Skip to content
Snippets Groups Projects
Commit f53dc243 authored by Xaver Maierhofer's avatar Xaver Maierhofer Committed by Geno
Browse files

[BUGFIX] Test property of the sidebar to set map position

parent 72d2b637
Branches
Tags
No related merge requests found
......@@ -21,12 +21,10 @@ define(function () {
sidebar.appendChild(container);
self.getWidth = function getWidth() {
if (sidebar.classList.contains('hidden')) {
if (sidebar.classList.contains('hidden') || button.offsetHeight === 0) {
return 0;
}
var small = window.matchMedia('(max-width: 630pt)');
return small.matches ? 0 : sidebar.offsetWidth;
return sidebar.offsetWidth;
};
self.add = function add(d) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment