diff --git a/src/Gallery.js b/src/Gallery.js index 4fcc62d..2af9992 100644 --- a/src/Gallery.js +++ b/src/Gallery.js @@ -27,7 +27,6 @@ class Gallery extends Component { componentDidMount () { this.onResize(); - window.addEventListener('resize', this.onResize); } componentWillReceiveProps (np) { @@ -250,9 +249,19 @@ class Gallery extends Component { tileViewportStyle={this.props.tileViewportStyle} thumbnailStyle={this.props.thumbnailStyle} />;}); - + var resizeIframeStyles = { + height: 0, + margin: 0, + padding: 0, + overflow: "hidden", + borderWidth: 0, + position: "fixed", + backgroundColor: "transparent", + width: "100%" + }; return (
this._gallery = c}> +