Commit a00fe3ad authored by Klaas Winter's avatar Klaas Winter

Fixed several issues with variance percentage bar resizing improperly

parent f1b320a1
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -84,8 +84,10 @@ list.VariancePercentagePlot = function () { ...@@ -84,8 +84,10 @@ list.VariancePercentagePlot = function () {
} }
if (update) { if (update) {
events.activesChanged(vpp); // Do not reverse these calls! after the event this variancepercentageplot entity will be unreferenced,
// yet it will still rerender everything with old settings!
render.variances(svg, data); render.variances(svg, data);
events.activesChanged(vpp);
} }
}); });
...@@ -165,6 +167,7 @@ list.VariancePercentagePlot = function () { ...@@ -165,6 +167,7 @@ list.VariancePercentagePlot = function () {
actives.lastChanged = actives.lastChanged === "first" ? "second" : "first"; actives.lastChanged = actives.lastChanged === "first" ? "second" : "first";
} }
render.variances(svg, data);
events.activesChanged(vpp); events.activesChanged(vpp);
} }
...@@ -209,7 +212,6 @@ list.VariancePercentagePlot = function () { ...@@ -209,7 +212,6 @@ list.VariancePercentagePlot = function () {
actives.lastChanged = activeToChange; actives.lastChanged = activeToChange;
changeActives(); changeActives();
render.variances(svg, data);
} else { } else {
draggedActive = actives.first === i ? "first" : "second"; draggedActive = actives.first === i ? "first" : "second";
dragging = true; dragging = true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment