|
@@ -35,9 +35,11 @@ export class VexFlowStaffEntry extends GraphicalStaffEntry {
|
|
|
}
|
|
|
gve.applyBordersFromVexflow();
|
|
|
if (this.parentMeasure.ParentStaff.isTab) {
|
|
|
+ // the x-position could be finetuned for the cursor.
|
|
|
+ // somehow, gve.vfStaveNote.getBoundingBox() is null for a TabNote (which is a StemmableNote).
|
|
|
this.PositionAndShape.RelativePosition.x = (gve.vfStaveNote.getAbsoluteX() + (<any>gve.vfStaveNote).glyph.getWidth()) / unitInPixels;
|
|
|
} else {
|
|
|
- this.PositionAndShape.RelativePosition.x = gve.vfStaveNote.getAbsoluteX() / unitInPixels;
|
|
|
+ this.PositionAndShape.RelativePosition.x = gve.vfStaveNote.getBoundingBox().getX() / unitInPixels;
|
|
|
}
|
|
|
const sourceNote: Note = gve.notes[0].sourceNote;
|
|
|
if (sourceNote.isRest() && sourceNote.Length.RealValue === this.parentMeasure.parentSourceMeasure.ActiveTimeSignature.RealValue) {
|