mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-07-05 15:17:49 +00:00
Implemented another way of waiting for refresh of region before animation
This commit is contained in:
parent
347a2977fa
commit
120b505361
14
js/main.js
14
js/main.js
@ -249,14 +249,14 @@ var MM = (function() {
|
||||
updateWrapperStates();
|
||||
|
||||
// Waiting for DOM-changes done in updateWrapperStates before we can start the animation.
|
||||
setTimeout(function(){
|
||||
moduleWrapper.style.opacity = 1;
|
||||
var dummy = moduleWrapper.parentElement.parentElement.offsetHeight;
|
||||
|
||||
moduleWrapper.style.opacity = 1;
|
||||
|
||||
clearTimeout(module.showHideTimer);
|
||||
module.showHideTimer = setTimeout(function() {
|
||||
if (typeof callback === "function") { callback(); }
|
||||
}, speed);
|
||||
}, 0);
|
||||
clearTimeout(module.showHideTimer);
|
||||
module.showHideTimer = setTimeout(function() {
|
||||
if (typeof callback === "function") { callback(); }
|
||||
}, speed);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user