Skip to content

Commit

Permalink
refactor(#301): 루트 노드 크기 대응
Browse files Browse the repository at this point in the history
  • Loading branch information
jaehan4707 committed Dec 13, 2023
1 parent 596d3a7 commit 17cec57
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ class NodeView(
drawInfo.textPaint.color = Color.WHITE
if (lines.size > 1) {
var y =
node.path.centerY.toPx(context) - node.path.radius.toPx(context) / 2 + drawInfo.padding.toPx(context) / 2
node.path.centerY.toPx(context) - node.path.radius.toPx(context) + drawInfo.padding.toPx(context)
for (line in lines) {
drawInfo.textPaint.getTextBounds(line, 0, line.length, bounds)
canvas.drawText(
Expand Down

0 comments on commit 17cec57

Please sign in to comment.