forked from react-bootstrap/react-bootstrap-bower
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAffix.js
More file actions
24 lines (20 loc) · 664 Bytes
/
Affix.js
File metadata and controls
24 lines (20 loc) · 664 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
define(function (require, exports, module) {var React = require('react');
var joinClasses = require('./utils/joinClasses');
var AffixMixin = require('./AffixMixin');
var domUtils = require('./utils/domUtils');
var Affix = React.createClass({displayName: 'Affix',
statics: {
domUtils: domUtils
},
mixins: [AffixMixin],
render: function () {
var holderStyle = {top: this.state.affixPositionTop};
return (
React.createElement("div", React.__spread({}, this.props, {className: joinClasses(this.props.className, this.state.affixClass), style: holderStyle}),
this.props.children
)
);
}
});
module.exports = Affix;
});