diff --git a/features/longList/src/main/ets/view/WaterFlowLivingView.ets b/features/longList/src/main/ets/view/WaterFlowLivingView.ets index c8877ffd52cc23e691f14878eeba60bd62b6d039..c7bbb9112cf984d98b0948bb29808f4b884b0256 100644 --- a/features/longList/src/main/ets/view/WaterFlowLivingView.ets +++ b/features/longList/src/main/ets/view/WaterFlowLivingView.ets @@ -91,7 +91,7 @@ export struct WaterFlowLivingView { }) .onAppear(() => { let videoPos = - componentUtils.getRectangleById(CommonConstants.WATER_FLOW_LIVING_STRUCT_ID + this.itemIndex); + this.getUIContext().getComponentUtils().getRectangleById(CommonConstants.WATER_FLOW_LIVING_STRUCT_ID + this.itemIndex); if (this.getUIContext().px2vp(videoPos.windowOffset.y) + this.getUIContext().px2vp(videoPos.size.height) < this.windowsHeight) { setTimeout(() => {