This commit is contained in:
Michael Teeuw
2016-11-12 20:03:56 +01:00
parent e311f17062
commit 688b5f29b6

View File

@@ -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";
});
};