mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 11:07:52 +08:00
Panel affixFooter 的 always 模式优化
This commit is contained in:
parent
7863cd7594
commit
b7fb68b824
@ -1391,6 +1391,10 @@
|
|||||||
clip: rect(1px, 1px, 1px, 1px);
|
clip: rect(1px, 1px, 1px, 1px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.invisible2 {
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
.hbox {
|
.hbox {
|
||||||
display: table;
|
display: table;
|
||||||
table-layout: fixed;
|
table-layout: fixed;
|
||||||
|
@ -66,7 +66,7 @@ export default class Panel extends React.Component<PanelProps> {
|
|||||||
|
|
||||||
if (this.props.affixFooter === 'always') {
|
if (this.props.affixFooter === 'always') {
|
||||||
affixed = true;
|
affixed = true;
|
||||||
footerDom.classList.add('hidden');
|
footerDom.classList.add('invisible2');
|
||||||
} else {
|
} else {
|
||||||
const clip = footerDom.getBoundingClientRect();
|
const clip = footerDom.getBoundingClientRect();
|
||||||
const clientHeight = window.innerHeight;
|
const clientHeight = window.innerHeight;
|
||||||
|
Loading…
Reference in New Issue
Block a user