Skip to content

Commit

Permalink
fix: wrong dot position
Browse files Browse the repository at this point in the history
  • Loading branch information
tbreuss committed Jul 28, 2023
1 parent 184226d commit f252b0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion widgets/views/fretboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
<?php if (!empty($config['showDots'])): ?>
<?php foreach ($frets as $fretIndex => $fretNumber): ?>
<?php $cx = $paddingLeft + ($fretIndex * ($fretTotalWidth) - ($fretSpacing / 2)) ?>
<?php $cy = $paddingTop + ($totalHeight / 2) - $paddingBottom ?>
<?php $cy = $paddingTop + ($fretboardHeight / 2) ?>
<?php if (in_array($fretNumber, $dots)): ?>
<circle class="fretboard__dot" cx="<?= $cx ?>" cy="<?= $cy ?>" r="<?= $dotRadius ?>" fill="<?= $dotColor ?>" />
<?php endif; ?>
Expand Down

0 comments on commit f252b0a

Please sign in to comment.