|
@@ -25,7 +25,7 @@ const fingeringViewInfo = async (type: ITypeContentItem) => {
|
|
const usedFixedKey = formatFixedKey(detail.name, detailState.fixedKey)
|
|
const usedFixedKey = formatFixedKey(detail.name, detailState.fixedKey)
|
|
const fullsrc = useFingeringSrc(activeType, detail.name, usedFixedKey.value)
|
|
const fullsrc = useFingeringSrc(activeType, detail.name, usedFixedKey.value)
|
|
const { width, height } = await getImageSize(fullsrc.value)
|
|
const { width, height } = await getImageSize(fullsrc.value)
|
|
- const containerHeight = document.getElementById('colexiu-detail-music-sheet')!.clientHeight || 0
|
|
|
|
|
|
+ const containerHeight = document.getElementById('colexiu-detail-music-sheet')?.clientHeight || 0
|
|
const w = runtime.evaluatingStatus ? 0 : width
|
|
const w = runtime.evaluatingStatus ? 0 : width
|
|
const scale = containerHeight / height
|
|
const scale = containerHeight / height
|
|
fingeringWidth.value = containerHeight ? scale * w : w
|
|
fingeringWidth.value = containerHeight ? scale * w : w
|