Skip to content

Commit

Permalink
Release 2.1.36
Browse files Browse the repository at this point in the history
  • Loading branch information
m.sadofyev committed Sep 14, 2016
1 parent 1506482 commit 550f702
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions out/platform.js
Original file line number Diff line number Diff line change
Expand Up @@ -8055,7 +8055,7 @@ var SelectDate = Backbone.View.extend({
var height = this.$el.height();

var direction = 'bottom';
if (rect.bottom + height + 30 > windowHeight && rect.bottom > windowHeight / 2) {
if (rect.bottom + height + 30 > windowHeight && rect.bottom > windowHeight / 2 && rect.top > height) {
direction = 'top';
}

Expand All @@ -8076,7 +8076,7 @@ var SelectDate = Backbone.View.extend({
if (direction === 'bottom') {
style.top = window.pageYOffset + rect.bottom;
} else {
style.top = rect.top - this.$el.height();
style.top = window.pageYOffset + rect.top - this.$el.height();
}

this.$el.css(style);
Expand Down
Loading

0 comments on commit 550f702

Please sign in to comment.