Skip to content

Commit

Permalink
Closes #440
Browse files Browse the repository at this point in the history
  • Loading branch information
Rainer Simon committed Dec 21, 2017
1 parent 6a021f7 commit 75bd38b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ define([
this.element.removeClass('align-right');
}

// Flip vertically if popup exceeds screen height
if (rectBefore.bottom > windowHeight) {
// If popup exceeds screen height, flip vertically if possible
if (rectBefore.bottom > windowHeight && rectBefore.y > this.element.outerHeight()) {
this.element.addClass('align-bottom');
this.element.css({ top: 'auto', bottom: self.container.clientHeight - translatedBounds.top });
} else {
Expand Down

0 comments on commit 75bd38b

Please sign in to comment.