Skip to content

Commit

Permalink
fix(Heatmap): Apply negative margins to keep the heatmap centered
Browse files Browse the repository at this point in the history
  • Loading branch information
bamdadfr committed Apr 6, 2022
1 parent 7dee60a commit f282385
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/ui/network.ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,11 @@ networkUi.toggleNodeSelection = function(nodeIndex: number, isSelected: boolean)

if (isSelected) {
canvas.style.border = '2px solid cyan';
canvas.style.margin = '-2px';
}
else {
canvas.style.border = null;
canvas.style.margin = null;
}
}
else {
Expand Down

0 comments on commit f282385

Please sign in to comment.