Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

support top & left arrow offsets together #37

Merged
merged 1 commit into from
Jul 19, 2017
Merged
Changes from all commits
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
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 }
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔 @FezVrasta should I include bottom and right here too? feels like a yes.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nvm, not necessary

}
}

Expand Down