diff --git a/js/main.js b/js/main.js index 41eeba0e..0fc4a8aa 100644 --- a/js/main.js +++ b/js/main.js @@ -52,6 +52,8 @@ var MM = (function() { } } + updateWrapperStates(); + sendNotification("DOM_OBJECTS_CREATED"); }; @@ -274,17 +276,11 @@ var MM = (function() { var showWrapper = false; Array.prototype.forEach.call(moduleWrappers, function(moduleWrapper) { - if (moduleWrapper.style.position == "static" || moduleWrapper.style.position == "") { + if (moduleWrapper.style.position == "" || moduleWrapper.style.position == "static") { showWrapper = true; } }); - // if (showWrapper) { - // console.log('Hide wrapper: ' + position); - // } else { - // console.log('Show wrapper: ' + position); - // } - wrapper.style.display = showWrapper ? "block" : "none"; }); };