From f9377f23b2df952051d5b1e149d82fce97a280bb Mon Sep 17 00:00:00 2001 From: 15871369330 <@Gitee31415926535> Date: Fri, 6 Sep 2024 17:37:20 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=BB=E4=B8=AD=E7=94=BB=E6=95=88=E6=9E=9C?= =?UTF-8?q?=E5=AE=9E=E7=8E=B0=20=20=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/pages/WindowPip.ets | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/entry/src/main/ets/pages/WindowPip.ets b/entry/src/main/ets/pages/WindowPip.ets index 02f9151..67048e2 100644 --- a/entry/src/main/ets/pages/WindowPip.ets +++ b/entry/src/main/ets/pages/WindowPip.ets @@ -15,6 +15,7 @@ import { Constants } from '../constants/Constants'; import { PlayVideo } from './VideoPlay'; +import Logger from '../utils/Logger'; @Component struct ImageWidthTitle { @@ -36,11 +37,12 @@ struct ImageWidthTitle { .alignItems(HorizontalAlign.Start) .onClick(() => { getContext().eventHub.emit('onStateChange', true); - this.pageInfos?.pushPath({ name: Constants.NAV_DESTINATION_NAME }, { launchMode: 3 }); + this.pageInfos?.pushPath({ name: Constants.NAV_DESTINATION_NAME }, { launchMode: 3 }); }) - .onAreaChange((oldArea, newArea) => { + .onAreaChange((oldArea: Area, newArea: Area) => { let width = newArea.width as number; this.imageHeight = width * 9 / 16; + Logger.info(`[onAreaChange] oldArea:${oldArea} ,newArea:${newArea}`); }) } } -- Gitee