Skip to content

Commit

Permalink
Merge pull request #2 from yahoo/ie9-test
Browse files Browse the repository at this point in the history
Ie9 test
  • Loading branch information
hankhsiao committed Nov 15, 2015
2 parents c412608 + 9073a28 commit b6afec4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ This is also inspired by [Steve Carlson](https://github.com/src-code).

## Usage

The sticky uses Modernizr `csstransforms3d` and `prefixed` features to detect IE8/9, so it can downgrade to not use transform3d.

http://modernizr.com/download/?-csstransforms3d-prefixed

```js
var Sticky = require('react-stickynode');
<Sticky enabled={true} top={50} bottomBoundary={1200}>
Expand Down
3 changes: 3 additions & 0 deletions tests/functional/bootstrap.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions tests/functional/sticky-functional.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ var TestText = React.createClass({
var StickyDemo = React.createClass({
render: function () {
return (
<div>
<div className='H(1800px)'>
<div className='IbBox W(1/4)'>
<Sticky>
<TestText id='sticky-1' className='H(300px) Bgc(#defd35)'/>
Expand All @@ -43,12 +43,14 @@ var StickyDemo = React.createClass({
<TestText id='sticky-2' className='H(1200px) Bgc(#defd35)'/>
</Sticky>
</div>
<div className='IbBox W(1/4)'>
<Sticky>
<TestText id='sticky-2' className='H(1200px) Bgc(#defd35)'/>
</Sticky>
</div>
<div id='ref' className='IbBox W(1/4)'>
<TestText className='H(1500px) Bgc(#defd35)'/>
</div>
<div className='IbBox W(1/4)'>
<TestText className='H(1800px) Bgc(#defd35)'/>
</div>
</div>
);
}
Expand Down

0 comments on commit b6afec4

Please sign in to comment.