Linear Scale Rotation Lock

Quick question,

I understand that to rotate a linear scale you need to make the width greater than the height or vice versa.
I was curious if there was a way to lock this property so that a scale would always be vertical or horizontal no matter the dimensions of the scale.

Thanks!