Dynamic resizing for mini map texture border

I posted this in GUI section but didnt get a reply so Ive tried here also.
http://forum.unity3d.com/threads/120495-Dynamic-resizing-for-mini-map-texture-border?p=808505#post808505

Ive created a mini map using a second camera. The normalized view port rect sets the size and position of the window and is dynamic whatever the resolution of the screen, for example, Width: 0.125 (% of the screen size) Height: 0.283 (% of the screen size).

Ive created a texture with a transparent centre to create a border for the mini map. i have set the position and scale ect but whenever the screen resolution changes the border is lost or out of position. I used DrawTexture to display the texture.

Code:
GUI.DrawTexture(new Rect(1020, 20, 300, 200), aTexture, ScaleMode.ScaleToFit, true, 1.0F);
My question is, is there a way to make the size and scale dynamic to the screen resolution so that the position around the mini map will change in size and position as the mini map and screen res does?

Thanks

you can query screen width and height with (surprise!) Screen.width and (even bigger surprise) Screen.height:

multiply this with your desired relative position. you will also need to adjust the width and height of your guitexture to keep the correct relative lower right position.