diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/ohos/FlutterPage.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/ohos/FlutterPage.ets index de520a54ea24f5597c60a73ce132e836a3e3a613..15af51a2dd5fc024975fd30f72561cfd1c8caa34 100644 --- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/ohos/FlutterPage.ets +++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/ohos/FlutterPage.ets @@ -61,6 +61,7 @@ export struct FlutterPage { Log.d(TAG, "XComponent onDestroy "); this.flutterView?.onSurfaceDestroyed() }) + .renderFit(RenderFit.TOP_LEFT) .backgroundColor(Color.Transparent) if (this.showSplashScreen) { @@ -114,6 +115,7 @@ export struct FlutterPage { Log.d(TAG, "XComponent onDestroy "); this.flutterView?.onSurfaceDestroyed() }) + .renderFit(RenderFit.TOP_LEFT) .backgroundColor(Color.Transparent) if (this.showSplashScreen) {