Skip to content

Commit

Permalink
Fix for popup position; fixes Semantic-Org#1482
Browse files Browse the repository at this point in the history
  • Loading branch information
MindFreeze authored Mar 20, 2017
1 parent 3fd65da commit a4834cf
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)
const positions = _.without(POSITIONS, position).push(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 a4834cf

Please sign in to comment.