addImageObject rotation causes corruption if Margin isn't 0

In the following example, the aliased surround around the image is not placed correctly. Sidebar doesn't take account of the body Margin's.
blank.png is a 100% transparent image
test.png is a solid white image 300x400

<BODY style="position:absolute; width:500px; height:500px;" >
<g:background id="bodyBackground" src="blank.png" style="width:100%; height:100%" />
</BODY>

Then add an image to it in code and rotate it:

bodyImageSurround = bodyBackground.addImageObject("test.png", 50, 50);
bodyImageSurround.rotation = 30;

You now have a rotated image, with the aliased surround in completely the wrong place! If you add "margin:0px;" to the body style, the aliased surround is placed correctly.

[1031 byte] By [JonathanAbbott] at [2008-2-22]
# 1
Thanks for the bug report!
BruceWilliams at 2007-9-3 > top of Msdn Tech,Gadgets,Sidebar Gadget Development...