client/js/datetime/calendar_pulldown/calendar_pulldown.coffee in rsence-pre-3.0.0.2 vs client/js/datetime/calendar_pulldown/calendar_pulldown.coffee in rsence-pre-3.0.0.3
- old
+ new
@@ -9,16 +9,16 @@
calendarVerticalAlign: 'top'
label: ''
calendarRect: ->
[ x, y ] = [ @pageX(), @pageY() ]
if @options.calendarHorizontalAlign == 'right'
- x = x - 200 + 15
+ x = x - 200 + @rect.width
else
- x = x + @rect.width - 7
+ x = x + @rect.width
if @options.calendarVerticalAlign == 'bottom'
- y = y - 200 + 2
+ y = y - 200
else
- y = y + 7
+ y = y
return [ x, y, 200, 200 ]
repositionMenuItems: ->
@menuItemView.setRect( @calendarRect() )
@menuItemView.drawRect()
menuShow: ->