Added a separate function to do the area rotation.
Avoid an area being invisible not only when it's size is changed by resizing, but also when it's created.