Skip to content

Commit e1d19f2

Browse files
Fix height calculation to use zoom-adjusted values
Use (b - t) instead of v->height() for consistency with zoom-scaled bounding box calculations. This ensures correct vertical spacing of edge variables. Co-authored-by: highperformancecoder <3075825+highperformancecoder@users.noreply.github.com>
1 parent 4bb386c commit e1d19f2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

model/group.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,9 +1221,9 @@ namespace minsky
12211221
top = t;
12221222
}
12231223
else if (i % 2)
1224-
top -= v->height();
1224+
top -= (b - t);
12251225
else
1226-
bottom += v->height();
1226+
bottom += (b - t);
12271227
}
12281228
};
12291229

0 commit comments

Comments
 (0)