The model is designed to work as follows:
The container (a web page, or a frame) provides the canvas with its
size. When the container changes size, the canvas changes size.
The way to change the size of the canvas is to change the size of the
container, either interactively by resizing the page/frame manually,
or programmatically via browser JS changing the size of the frame
that embeds the Flash movie.
This makes sense if you think about it. The effect of changing the
size of the container are understood and will cascade
deterministically to the canvas. If it worked the other way (canvas
outward), there would have to be an additional mechanism that
determines exactly what happens to the container when the canvas
resizes itself.
- D.
On Dec 18, 2006, at 5:32 PM, mt1 wrote:
So, just a simple question.
Why does the canvas not to be resizable ?
And can i resize it from outside LZX ?
mt1
Dan Stowell wrote:
Should i report this to JIRA ?
Or is this not bug ?
This is not a bug. We intend for the canvas not to be resizable
from within LZX.
mt1
mt1 wrote:
Thanks Dan. I got the clear point. :-)
Dan Stowell wrote:
Anyone know this ?
mt1 wrote:
For example, the following code is setting the canvas
attribute with using lzSetCanvasAttribute method, that is
contained in the embed.js file.
You can work it in case of using 'resizeTo()', but do not
work it with lzSetCanvas..().
My question is,
1. Can i set the canvas attributes after it has been
initialized ?
No. This is what I get in the debugger window if I attempt to
change the canvas size after it has initialized:
lzx> canvas.setWidth(200)
ERROR: setWidth cannot be called on the canvas.
What are you trying to do? There may be a workaround.
Dan Stowell / Software Engineer
Laszlo Systems / http://laszlosystems.com
[EMAIL PROTECTED]