Right align calendar on right window edge conflict

Right align calendar instead of aligning left and nudging when the left aligned calendar would cross the right window edge.

This looks prettier because the right calendar edge aligns with the component and the arrow correctly points to the component.