diff --git a/features/home/src/main/ets/view/VideoDaily.ets b/features/home/src/main/ets/view/VideoDaily.ets index 5938f5ed8e45d74119a2c55bfd11a95cbee18e6c..d8d11c43a07b2306ded45fff127e1cdd95c50477 100644 --- a/features/home/src/main/ets/view/VideoDaily.ets +++ b/features/home/src/main/ets/view/VideoDaily.ets @@ -55,17 +55,6 @@ export struct DailyVideo { this.mainWindowClass?.setPreferredOrientation(window.Orientation.AUTO_ROTATION_RESTRICTED); } // [End dd_set_preferred_orientation] - - // [Start dd_windowrect_rect] - let windowRect: window.Rect = this.mainWindowClass!.getWindowProperties().windowRect; - let windowWidthVp: number = this.getUIContext().px2vp(windowRect.width); - let windowHeightVp: number = this.getUIContext().px2vp(windowRect.height); - let aspectRatio: number = windowHeightVp / windowWidthVp; - if (aspectRatio < 1.2 && aspectRatio >= 0.8) { - this.mainWindowClass?.setPreferredOrientation(window.Orientation.AUTO_ROTATION_RESTRICTED); - } - - // [Start dd_windowrect_rect] // [Start dd_isfullscreen] if (this.isFullScreen) { if (deviceInfo.deviceType !== '2in1') {