Merge "Use getExactRotation for UPSIDE_DOWN rotation" into tm-dev