diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d68cd34..b1b1c8a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,9 @@ This project adheres to [Semantic Versioning](http://semver.org/). - Remove extensive logging in newsfeed node helper. - Calendar times are now uniformly capitalized. +### Fixed +- Solve an issue where module margins would appear when the first module of a section was hidden. + ## [2.0.5] - 2016-09-20 ### Added diff --git a/css/main.css b/css/main.css index 7ae902d6..f2188c66 100644 --- a/css/main.css +++ b/css/main.css @@ -113,13 +113,15 @@ sup { */ .module { - margin-top: 30px; + margin-bottom: 30px; } -.module:first-child { - margin-top: 0; +.region.bottom .module { + margin-top: 30px; + margin-bottom: 0px; } + /** * Region Definitions. */ diff --git a/modules/default/updatenotification/updatenotification.js b/modules/default/updatenotification/updatenotification.js index 6b79e862..cd2ba42c 100644 --- a/modules/default/updatenotification/updatenotification.js +++ b/modules/default/updatenotification/updatenotification.js @@ -10,19 +10,28 @@ Module.register("updatenotification", { start: function () { Log.log("Start updatenotification"); - var self = this; + }, notificationReceived: function(notification, payload, sender) { if (notification === "DOM_OBJECTS_CREATED") { this.sendSocketNotification("CONFIG", this.config); + this.hide(0,{lockString: self.identifier}); } }, socketNotificationReceived: function (notification, payload) { if (notification === "STATUS") { this.status = payload; - this.updateDom(1000); + this.updateUI(); + } + }, + + updateUI: function() { + var self = this; + if (this.status && this.status.behind > 0) { + self.updateDom(0); + self.show(1000, {lockString: self.identifier}); } },