diff --git a/README.md b/README.md index f13fccd6..30af1923 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,9 @@ This version of the Magic Mirror software focusses on a modular plugin system. B ##Todo Things that still have to be implemented or changed. +####Main +- Allow show/hide animations to animate the height. This way the other modules won't jump around. + ####Documentation - Write all the documentation. :) diff --git a/js/main.js b/js/main.js index da5896ac..cf81ca3f 100644 --- a/js/main.js +++ b/js/main.js @@ -422,10 +422,8 @@ var MM = (function() { * argument callback function - Called when the animation is done. */ hideModule: function(module, speed, callback) { - hideModule(module, speed, function() { - module.hidden = true; - if (typeof callback === 'function') { callback(); } - }); + module.hidden = true; + hideModule(module, speed, callback); }, /* showModule(module, speed, callback) diff --git a/modules/compliments/compliments.js b/modules/compliments/compliments.js index 865931cd..33586bad 100644 --- a/modules/compliments/compliments.js +++ b/modules/compliments/compliments.js @@ -113,7 +113,7 @@ Module.register('compliments',{ var compliment = document.createTextNode(complimentText); var wrapper = document.createElement("div"); - wrapper.className = 'thin xlarge'; + wrapper.className = 'thin xlarge bright'; wrapper.appendChild(compliment); return wrapper;