From 25ba893c15e37df2e9b0aeccf44cbb7c92ba629d Mon Sep 17 00:00:00 2001 From: "wanying.jwy" Date: Mon, 7 Sep 2020 10:07:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96simulator=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/designer/src/builtin-simulator/host.less | 9 +++++---- packages/rax-simulator-renderer/package.json | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/designer/src/builtin-simulator/host.less b/packages/designer/src/builtin-simulator/host.less index d5e29f31d..f763c732f 100644 --- a/packages/designer/src/builtin-simulator/host.less +++ b/packages/designer/src/builtin-simulator/host.less @@ -30,15 +30,16 @@ } &-device-iphonex { // 增加默认的小程序的壳 - left: calc(~"50% - 189px"); - top: calc(~"50% - 406px"); + left: 50%; + top: 50%; + transform: translate(-50%, -50%); width: 378px; - max-height: 812px; + height: 812px; + max-height: calc(100vh - 50px); background: url(https://img.alicdn.com/tfs/TB1b4DHilFR4u4jSZFPXXanzFXa-750-1574.png) no-repeat top; background-size: 378px 812px; border-radius: 44px; box-shadow: rgba(0, 0, 0, 0.1) 0px 36px 42px; - transform: scale(1); .@{scope}-canvas-viewport { width: auto; top: 50px; diff --git a/packages/rax-simulator-renderer/package.json b/packages/rax-simulator-renderer/package.json index 36d44c1a5..9c4f6a759 100644 --- a/packages/rax-simulator-renderer/package.json +++ b/packages/rax-simulator-renderer/package.json @@ -55,5 +55,5 @@ "ts-node/register" ] }, - "homepage": "https://unpkg.alibaba-inc.com/@ali/lowcode-rax-simulator-renderer@0.8.44/build/index.html" + "homepage": "https://unpkg.alibaba-inc.com/@ali/lowcode-rax-simulator-renderer@0.8.45/build/index.html" }