diff --git a/src/renderers/Panel.tsx b/src/renderers/Panel.tsx index 510844b90..6ddd28ffa 100644 --- a/src/renderers/Panel.tsx +++ b/src/renderers/Panel.tsx @@ -44,6 +44,7 @@ export default class Panel extends React.Component { this.parentNode = parent; parent.addEventListener('scroll', this.affixDetect); this.unSensor = resizeSensor(dom as HTMLElement, this.affixDetect); + this.affixDetect(); } componentWillUnmount() {