1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Reverted design trick to avoid weirdness, gotta think about sth better

This commit is contained in:
Krateng 2019-04-30 18:47:33 +02:00
parent 882a5500fd
commit 6976014d10

View File

@ -2,8 +2,10 @@ function showRange(identifier,unit) {
// Make all modules disappear // Make all modules disappear
modules = document.getElementsByClassName("stat_module_" + identifier) modules = document.getElementsByClassName("stat_module_" + identifier)
for (var i=0;i<modules.length;i++) { for (var i=0;i<modules.length;i++) {
modules[i].setAttribute("style","width:0px;overflow:hidden;") //modules[i].setAttribute("style","width:0px;overflow:hidden;")
// cheesy trick to make the allocated space always whatever the biggest module needs // cheesy trick to make the allocated space always whatever the biggest module needs
// somehow that messes up pulse on the start page tho
modules[i].setAttribute("style","display:none;")
} }
// Make requested module appear // Make requested module appear