Sfoglia il codice sorgente

measure number placement: further relax collision check (remove margin from borderRight) (#782)

sschmid 5 anni fa
parent
commit
718786acb8
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/MusicalScore/Graphical/MusicSheetCalculator.ts

+ 1 - 1
src/MusicalScore/Graphical/MusicSheetCalculator.ts

@@ -378,7 +378,7 @@ export abstract class MusicSheetCalculator {
 
         // and the corresponding SkyLine indices
         let start: number = relativeX;
-        let end: number = relativeX - graphicalLabel.PositionAndShape.BorderLeft + graphicalLabel.PositionAndShape.BorderMarginRight;
+        let end: number = relativeX - graphicalLabel.PositionAndShape.BorderLeft + graphicalLabel.PositionAndShape.BorderRight;
 
         start -= staffLine.PositionAndShape.RelativePosition.x;
         end -= staffLine.PositionAndShape.RelativePosition.x;