Skip to content

Commit

Permalink
popup position fix Semantic-Org#1482
Browse files Browse the repository at this point in the history
  • Loading branch information
Petar Petrov committed Jul 25, 2017
1 parent a4834cf commit c5d8f52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/Popup/Popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export default class Popup extends Component {

// Lets detect if the popup is out of the viewport and adjust
// the position accordingly
const positions = _.without(POSITIONS, position).push(position)
const positions = _.without(POSITIONS, position).concat([position])
for (let i = 0; !this.isStyleInViewport(style) && i < positions.length; i++) {
style = this.computePopupStyle(positions[i])
position = positions[i]
Expand Down

0 comments on commit c5d8f52

Please sign in to comment.