From b1a0b9c3123af3a5240c4b095f95d3157ed3d14a Mon Sep 17 00:00:00 2001 From: newsiberian Date: Sun, 3 Apr 2016 20:03:10 +0600 Subject: [PATCH 1/2] provided initial value to `windowHeight`; --- src/Lightbox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Lightbox.js b/src/Lightbox.js index a870c2af..a6175e09 100644 --- a/src/Lightbox.js +++ b/src/Lightbox.js @@ -42,7 +42,7 @@ class Lightbox extends Component { this.handleKeyboardInput = this.handleKeyboardInput.bind(this); this.handleResize = this.handleResize.bind(this); - this.state = {}; + this.state = { windowHeight: 0 }; } componentWillReceiveProps (nextProps) { From e319cbecdc503e029869877b2ec91e5da3714431 Mon Sep 17 00:00:00 2001 From: newsiberian Date: Sun, 3 Apr 2016 21:37:04 +0600 Subject: [PATCH 2/2] - `zIndex` of Lightbox component increased; --- src/styles/default.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/styles/default.js b/src/styles/default.js index 3361d1b7..6a2a9942 100644 --- a/src/styles/default.js +++ b/src/styles/default.js @@ -15,7 +15,7 @@ const styles = { textAlign: 'center', top: 0, width: '100%', - zIndex: 1001, + zIndex: 2001, }, content: { display: 'inline-block',