From 67990cafac6301d0efc263f414311a501a1829e6 Mon Sep 17 00:00:00 2001 From: feng <1362134550@qq.com> Date: Thu, 10 Jul 2025 09:53:50 +0000 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=B9=B3=E6=9D=BF=E7=AB=96?= =?UTF-8?q?=E5=B1=8F=E6=AD=8C=E8=AF=8D=E6=98=BE=E7=A4=BA=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: feng <1362134550@qq.com> --- features/musicList/src/main/ets/lyric/LrcView.ets | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/features/musicList/src/main/ets/lyric/LrcView.ets b/features/musicList/src/main/ets/lyric/LrcView.ets index eb71400..1eaf47c 100644 --- a/features/musicList/src/main/ets/lyric/LrcView.ets +++ b/features/musicList/src/main/ets/lyric/LrcView.ets @@ -748,15 +748,15 @@ export default struct shiLrcView { build() { Canvas(this.context) .onAreaChange((oldArea: Area, newArea: Area) => { - this.viewWidth = Number.parseFloat(newArea.width.toLocaleString()); - this.viewHeight = Number.parseFloat(newArea.height.toLocaleString()); - if (oldArea.width.toLocaleString() !== newArea.width.toLocaleString()) { + this.viewWidth = Number.parseFloat(newArea.width.toString()); + this.viewHeight = Number.parseFloat(newArea.height.toString()); + if (oldArea.width.toString() !== newArea.width.toString()) { this.calculate(); let line = this.findShowLine(this.lyricMilliSecondsTime); let offset = this.getOffset(line); this.drawContent(offset); } - if (oldArea.height.toLocaleString() !== newArea.height.toLocaleString()) { + if (oldArea.height.toString() !== newArea.height.toString()) { this.calculate(); let line = this.findShowLine(this.lyricMilliSecondsTime); let offset = this.getOffset(line); -- Gitee