Skip to content

Commit

Permalink
fix: make sure the top of scheduleDetailPopup is non-negative (#638)
Browse files Browse the repository at this point in the history
  • Loading branch information
dilyanpalauzov authored Jun 22, 2020
1 parent dfe8541 commit fc55ad8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/view/popup/scheduleDetailPopup.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ ScheduleDetailPopup.prototype._getYAndArrowTop = function(
y = 0;
arrowTop = scheduleVerticalCenter - containerTop - ARROW_WIDTH_HALF;
} else if (y + layerHeight > containerBottom) {
y = containerBottom - layerHeight - containerTop;
y = Math.max(containerBottom - layerHeight - containerTop, 0);
arrowTop = scheduleVerticalCenter - y - containerTop - ARROW_WIDTH_HALF;
} else {
y -= containerTop;
Expand Down

0 comments on commit fc55ad8

Please sign in to comment.