From 512e0964966a936946e91f48927d4a512ffc3bca Mon Sep 17 00:00:00 2001 From: Michael Lumbroso Date: Mon, 31 Oct 2016 14:09:25 +0200 Subject: [PATCH] Fix undefined width --- swipe_out/swipe_out.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/swipe_out/swipe_out.js b/swipe_out/swipe_out.js index 1366abf9..a5661580 100644 --- a/swipe_out/swipe_out.js +++ b/swipe_out/swipe_out.js @@ -62,6 +62,7 @@ var Swipeout = React.createClass({ , _buttonsRightWidth () { let w = 0; + let width = this.state.contentWidth; if ( this.props.right && this.props.right.length ) { this.props.right.forEach(function(el) { if( el.styleButton && el.styleButton.width ) @@ -75,6 +76,7 @@ var Swipeout = React.createClass({ , _buttonsLeftWidth () { let w = 0; + let width = this.state.contentWidth; if ( this.props.left && this.props.left.length ) { this.props.left.forEach(function(el) { if( el.styleButton && el.styleButton.width )