黄琪勇 5 місяців тому
батько
коміт
b3cd85559a
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      src/view/selection/index.tsx

+ 1 - 1
src/view/selection/index.tsx

@@ -134,9 +134,9 @@ const calcNoteData = () => {
 					} catch (error) {}
 
 					// console.log("🚀 ~ staveEle:", staveBbox.height)
-					selectData.measureHeight = staveBbox.height
 					let compareVal = staveBbox.height - minMeasureHeigt
 					compareVal = compareVal > 0 ? compareVal : 0
+					selectData.measureHeight = staveBbox.height - compareVal
 					noteItem.staveBox = {
 						left: staveBbox.x - parentLeft + "px",
 						// top: ((item.stave.y || 0) - 5) * state.zoom + "px",