Skip to content

Commit

Permalink
Move stacked logic to correct place
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronDavidNewman committed May 4, 2020
1 parent cc2ee19 commit b8807ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chordSymbol.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,15 +227,15 @@ export class ChordSymbol extends Modifier {
const prev = instance.symbolBlocks[j - 1];
if (!instance.isSuperscript(prev)) {
nonSuperWidth = width;
// If we have vertically lined up, turn kerning off.
instance.setUseKerning(false);
}
}
if (sub && nonSuperWidth > 0) {
// slide the symbol over so it lines up with superscript
symbol.x_offset = nonSuperWidth - width;
width = nonSuperWidth - symbol.width;
nonSuperWidth = 0;
// If we have vertically lined up, turn kerning off.
instance.setUseKerning(false);
}
if (!sup && !sub) {
nonSuperWidth = 0;
Expand Down

0 comments on commit b8807ce

Please sign in to comment.