From 3b0a8444687214d05a3fc9132dc21c233e538ee0 Mon Sep 17 00:00:00 2001 From: lon9 <815882449@qq.com> Date: Tue, 17 Jun 2025 20:40:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=A4=9A=E4=BD=99=E5=90=8C?= =?UTF-8?q?=E6=BA=90=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- features/home/src/main/ets/view/VideoDaily.ets | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/features/home/src/main/ets/view/VideoDaily.ets b/features/home/src/main/ets/view/VideoDaily.ets index 5938f5e..d8d11c4 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') { -- Gitee