On a button click I create a Rectangle and rotate it by 45 degrees. Then I add it to the canvas. Now once the rectangle is created, I try to get its bounds but it returns null. Please let me know why? And how to rectify the following:On a button click I create a Rectangle and rota