瀏覽代碼

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

sschmid 5 年之前
父節點
當前提交
718786acb8
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;