Skip to content

Commit

Permalink
fix: remove unnecessary 1px spacing.
Browse files Browse the repository at this point in the history
  • Loading branch information
dan12411 committed Jul 15, 2024
1 parent 3793931 commit 1ab014a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/graffiti/element/label.dart
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ class LabelElement extends BlockElement<LabelStyle> {
Rect getBlock() {
const horizontalSpacing = 1;
final left = paintPoint.dx - horizontalSpacing;
final top = paintPoint.dy - 1;
final top = paintPoint.dy;
final width = _textSize.width + 2 * horizontalSpacing;
final height = _textSize.height;

Expand Down

0 comments on commit 1ab014a

Please sign in to comment.