position calendar after appending it. support different positions for tooltip