My solution is to create a white canvas with the large width. (Think my max was 42000)
I needed a 15 pixel higy grey field at the buttom on the canvas. This had to be done in a loop. I don't remember the limits, but say that you can write a rectangle with 1000 pixels with and the fill it you can do that 42 times and your problem is solved.
Rectangle and Line has the same limits in with. The limit is more than 1000. This worked fine, the problem was performance. So my solution now is to just draw the canvas that is showed. Need to draw again each time the user scroll.
Olav Haga
Member
6 Points
15 Posts
Re: Re: Did you get this issue? Canvas width problem?
Jan 05, 2009 05:38 AM | LINK
I had the same problem.
My solution is to create a white canvas with the large width. (Think my max was 42000)
I needed a 15 pixel higy grey field at the buttom on the canvas. This had to be done in a loop. I don't remember the limits, but say that you can write a rectangle with 1000 pixels with and the fill it you can do that 42 times and your problem is solved. Rectangle and Line has the same limits in with. The limit is more than 1000. This worked fine, the problem was performance. So my solution now is to just draw the canvas that is showed. Need to draw again each time the user scroll.