Skip to content

Commit

Permalink
place calendar above to limit unnecessary scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
saturnflyer committed Feb 14, 2010
1 parent f3374ca commit ea028d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/javascripts/admin/dateinput.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ DateInputBehavior.Calendar = Behavior.create({
this.date = this.selector.getDate(); this.date = this.selector.getDate();
this.redraw(); this.redraw();
this.element.setStyle({ this.element.setStyle({
'top': this.selector.element.cumulativeOffset().top + this.selector.element.getHeight() + 2 + 'px', 'top': this.selector.element.cumulativeOffset().top - (this.element.getHeight() + 4) + 'px',
'left': Math.max(this.selector.element.cumulativeOffset().left + this.selector.element.getWidth() - this.element.getWidth() - 4, this.selector.element.cumulativeOffset().left) + 'px', 'left': Math.max(this.selector.element.cumulativeOffset().left + this.selector.element.getWidth() - this.element.getWidth() - 4, this.selector.element.cumulativeOffset().left) + 'px',
'z-index': 10001 'z-index': 10001
}); });
Expand Down

0 comments on commit ea028d7

Please sign in to comment.