The display is not ordered properly
Olivex727 opened this issue · 1 comments
Olivex727 commented
Olivex727 commented
The issue has been fixed:
`deviation.push(document.getElementById("chem_t_" + code + "_" + c).offsetWidth);
}
//Align the text box elements with eachother
let longest = deviation[0];
for (let c in set[0]) {
if (deviation[c] > longest) {
longest = deviation[c];
}
}
for (let c in set[0]) {
document.getElementById("chem_n_" + code + "_" + c).style.position = "relative";
document.getElementById("chem_n_" + code + "_" + c).style.left = (longest - deviation[c]).toString() + "px";
}`