Skip to content

Commit

Permalink
Fixed html bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbert van Renesse committed Oct 29, 2024
1 parent 6ebfb63 commit fa77a44
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions harmony_model_checker/harmony/charm.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ function drawTimeLine(mes, mis) {
nsteps -= xboxes;
}
c.stroke();
mes.nextstep.innerHTML = "";
// mes.nextstep.innerHTML = "";
return t;
}

Expand Down Expand Up @@ -792,7 +792,7 @@ function run_microstep(t) {
else if (t+1 < microsteps.length) {
var nmis = microsteps[t+1];
if (nmis.tid == mis.tid) {
mes.nextstep.innerHTML = "next: " + explain_expand(nmis.explain2);
mes.nextstep.innerHTML = "next2: " + explain_expand(nmis.explain2);
}
else {
updateStatus(mes);
Expand Down Expand Up @@ -836,8 +836,8 @@ function run_microsteps() {
for (var i = 0; i < nmegasteps; i++) {
drawTimeLine(megasteps[i], microsteps);
}
if (currentTime < microsteps.length && (currentTime == 0 ||
microsteps[currentTime - 1].tid != microsteps[currentTime].tid)) {
if (currentTime < microsteps.length /* && (currentTime == 0 ||
microsteps[currentTime - 1].tid != microsteps[currentTime].tid) */) {
var mis = microsteps[currentTime];
var mes = megasteps[mis.mesidx];
mes.nextstep.innerHTML = "next: " + explain_expand(mis.explain2);
Expand All @@ -851,7 +851,7 @@ function run_microsteps() {
}
}
}
container.scrollTop = currOffset.offsetTop;
container.scrollTop = currOffset.offsetTop - 50;

if (currCloc != null) {
currCloc.style.color = "red";
Expand Down

0 comments on commit fa77a44

Please sign in to comment.