From b7fb68b824dc0c344315351e7d48b9ea37645428 Mon Sep 17 00:00:00 2001 From: liaoxuezhi Date: Tue, 10 Sep 2019 17:59:17 +0800 Subject: [PATCH] =?UTF-8?q?Panel=20affixFooter=20=E7=9A=84=20always=20?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scss/_utilities.scss | 4 ++++ src/renderers/Panel.tsx | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/scss/_utilities.scss b/scss/_utilities.scss index 40d9c5ab9..9a78194ec 100644 --- a/scss/_utilities.scss +++ b/scss/_utilities.scss @@ -1391,6 +1391,10 @@ clip: rect(1px, 1px, 1px, 1px); } +.invisible2 { + visibility: hidden; +} + .hbox { display: table; table-layout: fixed; diff --git a/src/renderers/Panel.tsx b/src/renderers/Panel.tsx index 185528308..1d1a5a1e2 100644 --- a/src/renderers/Panel.tsx +++ b/src/renderers/Panel.tsx @@ -66,7 +66,7 @@ export default class Panel extends React.Component { if (this.props.affixFooter === 'always') { affixed = true; - footerDom.classList.add('hidden'); + footerDom.classList.add('invisible2'); } else { const clip = footerDom.getBoundingClientRect(); const clientHeight = window.innerHeight;