From 150c88d47e10ac62ecf0191c64490397da8efff8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E9=9B=BE=E4=B8=89=E8=AF=AD?= <32354856+baiwusanyu-c@users.noreply.github.com> Date: Tue, 22 Aug 2023 23:13:02 +0800 Subject: [PATCH] fix: Fix mask height setting problem (#131) --- components/Mask/src/index.svelte | 4 +--- pnpm-lock.yaml | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/components/Mask/src/index.svelte b/components/Mask/src/index.svelte index 81a0b252..2bdc05e3 100644 --- a/components/Mask/src/index.svelte +++ b/components/Mask/src/index.svelte @@ -25,9 +25,7 @@ : parentEl.getBoundingClientRect(); if (containerDomRect) { drawerWidth = containerDomRect.width ? `${containerDomRect.width}px` : '100%'; - drawerHeight = containerDomRect.height ? `${containerDomRect.height}px` : '100%'; - // drawerTop = containerDomRect.top; - // drawerLeft = containerDomRect.left; + drawerHeight = '100%'; } }; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index fb819c4b..28d84a68 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -272,7 +272,7 @@ importers: version: 5.0.0 svelte-strip: specifier: ^2.0.0 - version: 2.0.0(postcss@8.4.27)(svelte@3.59.2) + version: 2.0.0(postcss@8.4.27)(svelte@4.0.0-next.3) tslib: specifier: ^2.6.1 version: 2.6.1 @@ -297,7 +297,7 @@ importers: version: 5.0.0 svelte-strip: specifier: ^2.0.0 - version: 2.0.0(postcss@8.4.27)(svelte@3.59.2) + version: 2.0.0(postcss@8.4.27)(svelte@4.0.0-next.3) tslib: specifier: ^2.6.1 version: 2.6.1