Browse files

place calendar above to limit unnecessary scrolling

  • Loading branch information...
1 parent f3374ca commit ea028d736a434861ffa296ac64422ed4ff1dd71c @saturnflyer saturnflyer committed Feb 14, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 public/javascripts/admin/dateinput.js
View
2 public/javascripts/admin/dateinput.js
@@ -116,7 +116,7 @@ DateInputBehavior.Calendar = Behavior.create({
this.date = this.selector.getDate();
this.redraw();
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',
'z-index': 10001
});

0 comments on commit ea028d7

Please sign in to comment.