From 4a283c46a14d182cf7619fbdb9a275a370e2b0b3 Mon Sep 17 00:00:00 2001 From: Alexey Solomentsev Date: Sat, 12 Jan 2019 22:59:45 +0300 Subject: [PATCH] added support container with overflow --- src/components/App/App.jsx | 19 ++++++++++++++++++- src/components/Gallery/Gallery.jsx | 12 +++++++++--- src/components/Gallery/gallery.css | 13 +++++++++++++ 3 files changed, 40 insertions(+), 4 deletions(-) diff --git a/src/components/App/App.jsx b/src/components/App/App.jsx index 11c8fa1..4d30509 100755 --- a/src/components/App/App.jsx +++ b/src/components/App/App.jsx @@ -16,6 +16,7 @@ export default class App extends React.Component { afterLoadText: 'afterLoad triggered', beforeLoadText: 'beforeLoad triggered', direction: 'vertical', + containerWithOverflow: false, effect: '', showLowResImages: true, threshold: 100 @@ -48,7 +49,7 @@ export default class App extends React.Component { render() { const {afterLoadText, beforeLoadText, direction, - effect, showLowResImages, threshold} = this.state; + effect, showLowResImages, threshold, containerWithOverflow} = this.state; return (
@@ -114,6 +115,21 @@ export default class App extends React.Component {

+
+

+ +

+

@@ -142,6 +158,7 @@ export default class App extends React.Component { +

{photos.map((photo) =>