Skip to content

Commit

Permalink
Merge pull request #37 from giladgray/arrow-offsets
Browse files Browse the repository at this point in the history
support top & left arrow offsets together
  • Loading branch information
souporserious committed Jul 19, 2017
2 parents b3e0f32 + 541d93f commit c934718
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Popper.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,7 @@ class Popper extends Component {
return {}
} else {
const { top, left } = this.state.data.offsets.arrow
if (!left) {
return { top: +top }
} else {
return { left: +left }
}
return { top: +top, left: +left }
}
}

Expand Down

0 comments on commit c934718

Please sign in to comment.