View Full Version : Canvas width equal to 0 always ?
10-16-2006, 03:58 AM
I am adding a canvas to the application adn setting its width and height to 100% but when I trace out the width it traces 0 ??
Maybe your application has a width and height of 0?
10-16-2006, 07:34 PM
the application width and height is set to 800x600 so if i do a trace from inside the canvas like
traces out 800
Maybe your checking the dimensions to early? i.e. no waiting until its been fully initialized and layed out?
10-16-2006, 07:48 PM
tried that too ...traced it out on the initialize event function handler same thing :(
too early bud.
After the initialization phase, properties are processed, the component is measured, laid out, and drawn, after which the creationComplete event is dispatched.
you want to do it after its been laid out and drawn etc using creationComplete
Dispatched when the component has finished its construction, property processing, measuring, layout, and drawing.
vBulletin® v3.8.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.