Restore width props in affixStyle of <Affix /> (#1854)

+ close #1820
This commit is contained in:
RaoHai 2016-05-26 11:07:02 +08:00 committed by afc163
parent 38433f606b
commit b8e196f178

View File

@ -76,6 +76,7 @@ export default class Affix extends React.Component {
position: 'fixed',
top: offsetTop,
left: elemOffset.left,
width: ReactDOM.findDOMNode(this).offsetWidth,
},
});
}
@ -88,6 +89,7 @@ export default class Affix extends React.Component {
position: 'fixed',
bottom: offsetBottom,
left: elemOffset.left,
width: ReactDOM.findDOMNode(this).offsetWidth,
},
});
}