Skip to content

Commit

Permalink
Alginment : fix vertical_alignment spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
ray-pH committed Sep 23, 2023
1 parent 122d3d5 commit 5556107
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/alignment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export function distribute_vertical(diagrams : Diagram[], space : number = 0) :
let this_diagram = diagrams[i];
let prev_bottom = prev_diagram.get_anchor(Anchor.BottomLeft).y;
let this_top = this_diagram.get_anchor(Anchor.TopLeft).y;
let dy = prev_bottom - this_top + space;
let dy = prev_bottom - this_top - space;
distributed_diagrams.push(this_diagram.translate(V2(0, dy)));
}
return distributed_diagrams;
Expand Down

0 comments on commit 5556107

Please sign in to comment.