diff --git a/entry/src/main/ets/pages/WindowPip.ets b/entry/src/main/ets/pages/WindowPip.ets index 02f9151424fe6c49ef36dd2377cac5259895f56c..67048e28b65e46d7acbc216c0f03fb8beca59f89 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}`); }) } }