Unity 4.6 GUI - Stretch/scale while rotated

I am having an issue where I have a Rect that is rotated 90 degrees and I want to make it scale along with the Canvas. I have set up the anchors just like I did with the non-rotated rects but when the canvas stretches horizontally, the rect stretches vertically and vice versa. This only happens with the rects that are rotated.

I have tried inverting the anchors (putting each anchor on the opposite corner, which gives it a slightly different effect but not the standard stretch/scale I’m looking for.

For certain reasons, I can’t just leave the rect with no rotation and change the dimensions to make it look like it’s rotated, which so far is the only way I’ve been able to make it scale properly.

Has anyone else encountered this or have any idea what I can do?

I’m not sure if I understood but maybe when you rotate 90 degrees. Canvas detect width when teorically is height and height when is widht?

Hope is that.

First rotate as you want

  1. set anchor to stretched
  2. swap min x and max x
  3. swap min y and max y