Panel affixFooter 的 always 模式优化

This commit is contained in:
liaoxuezhi 2019-09-10 17:59:17 +08:00
parent 196dd54a5e
commit 60b8209afc
2 changed files with 5 additions and 1 deletions

View File

@ -1391,6 +1391,10 @@
clip: rect(1px, 1px, 1px, 1px);
}
.invisible2 {
visibility: hidden;
}
.hbox {
display: table;
table-layout: fixed;

View File

@ -66,7 +66,7 @@ export default class Panel extends React.Component<PanelProps> {
if (this.props.affixFooter === 'always') {
affixed = true;
footerDom.classList.add('hidden');
footerDom.classList.add('invisible2');
} else {
const clip = footerDom.getBoundingClientRect();
const clientHeight = window.innerHeight;