4 Replies Latest reply on May 5, 2009 3:12 AM by Boy Carper

    Update mx:Canvas dimensions after drawing on it

    Boy Carper

      Hey all,


      I'm using a nested canvas (inside another one) to draw a grid on. When I have drawn my grid the canvas width and height don't seem to update which results in my grid being visible outside the canvas boundaries. When I place a break point after the draw method I can see that the $width and $height have the correct values, but the width and height are still showing their old values. How can I trigger the validation of the new dimensions so that my content will be masked properly and the parent canvas will use the scrollbars?


      tnx in advance!