Olivex727/SDD_Major_Work

The display is not ordered properly

Olivex727 opened this issue · 1 comments

The input boxes need to be altered so that they are all in-line.
Screen Shot 2020-08-09 at 20 52 34

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";
}`