Skip to content
This repository was archived by the owner on Sep 16, 2020. It is now read-only.
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Swipeout unset orientation which will be undefined, make it as row.
  • Loading branch information
ZackLeonardo committed Apr 10, 2018
commit 55b1a35598fc2fc97b50b8c26d80f46773c8f3e3
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ const Swipeout = createReactClass({
let buttonWidth = this.props.buttonWidth || (width/5);
this.setState({
btnWidth: buttonWidth,
btnsLeftWidth: this.props.left ? (this.props.orientation == 'row' ? buttonWidth*this.props.left.length : (width/5) ): 0,
btnsRightWidth: this.props.right ? (this.props.orientation == 'row' ? buttonWidth*this.props.right.length : (width/5) ) : 0,
btnsLeftWidth: this.props.left ? (this.props.orientation == 'column' ? (width/5) : buttonWidth*this.props.left.length ): 0,
btnsRightWidth: this.props.right ? (this.props.orientation == 'column' ? (width/5) : buttonWidth*this.props.right.length ) : 0,
swiping: true,
timeStart: (new Date()).getTime(),
});
Expand Down