Skip to content

Commit

Permalink
Issue MakingSense#67 scrolling placement error solved
Browse files Browse the repository at this point in the history
  • Loading branch information
joanvila committed Mar 16, 2016
1 parent 1dba099 commit aac31cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions moment-datepicker/moment-datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,12 +209,12 @@

if (this.calendarPlacement == 'left') {
this.picker.css({
top: offset.top + this.height + scrollTop - viewportOffset.top,
top: offset.top + this.height,
left: offset.left + sourceItem[0].offsetWidth - this.picker[0].offsetWidth
});
} else {
this.picker.css({
top: offset.top + this.height + scrollTop - viewportOffset.top,
top: offset.top + this.height,
left: offset.left,
zIndex : zIndex
});
Expand Down

0 comments on commit aac31cd

Please sign in to comment.