From 1ad2db2f4c2fd4af883af3401544006c669b1a3c Mon Sep 17 00:00:00 2001 From: hdw Date: Fri, 6 Jun 2025 17:58:44 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E4=BF=AE=E6=94=B9=E5=BA=9F?= =?UTF-8?q?=E5=BC=83api?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- features/videoDetail/src/main/ets/view/VideoDetail.ets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/videoDetail/src/main/ets/view/VideoDetail.ets b/features/videoDetail/src/main/ets/view/VideoDetail.ets index 54bac78..34589e6 100644 --- a/features/videoDetail/src/main/ets/view/VideoDetail.ets +++ b/features/videoDetail/src/main/ets/view/VideoDetail.ets @@ -233,7 +233,7 @@ export struct VideoDetail { .sideBarPosition(SideBarPosition.End) .sideBarWidth($r('app.float.side_bar_min_width')) .minSideBarWidth($r('app.float.side_bar_min_width')) - .maxSideBarWidth(px2vp(this.windowWidth * DetailConstants.COMMENTS_AREA_PERCENT)) + .maxSideBarWidth(this.getUIContext().px2vp(this.windowWidth * DetailConstants.COMMENTS_AREA_PERCENT)) // [End side_bar_container] } .height(CommonConstants.FULL_PERCENT) -- Gitee