Skip to content

Commit

Permalink
collapse height bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rnosov committed Feb 10, 2018
1 parent 11d1be2 commit b387a84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-reveal",
"version": "1.0.0",
"version": "1.0.1",
"author": "Roman Nosov <rnosov@gmail.com>",
"description": "Really simple way to add reveal on scroll animation to your React app.",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions src/RevealBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class RevealBase extends React.Component {
if (!this.isShown) {
this.setState( { style: { ...this.state.style, visibility: 'hidden' }/*, collapsing: false */});
if (this.props.collapse)
window.document.dispatchEvent(collapseend)
window.document.dispatchEvent(collapseend);
}
}

Expand Down Expand Up @@ -367,7 +367,7 @@ class RevealBase extends React.Component {
style: {
...el.props.style,
position:'absolute',
left:'-9999em',
//left:'-9999em',
top:'-9999em',
height: 'auto',
//display: 'block',
Expand Down

0 comments on commit b387a84

Please sign in to comment.