privateer
02-01-2004, 11:58 PM
Hello,
Can a Lazlo application canvas be resized dynamically to fit the browser window or an iframe that contains the application and is scaled by the user?
Example 1: Place the Laszlo app in the left frame of a two frame window. As the browser is resized or the frame is resized by the user, dynamically resize the app canvas to fit the frame.
(The lzx-reference application has this issue, with contents and index in the left frame and the content in the right frame. Both in the vertical and horizontal directions)
Example 2: Laszlo windows "disappear" behind the edge of the canvas and before the edge of the browser viewable area. The canvas needs to scale with changes in the browser's viewable space.
This requires communication with the container. I noticed the following:
LzBrowser.loadURL ( "javascript:alert('hello world')" ) ;
Can I pass out a reference to a canvas resize function on load or call a Laszlo function from the container when I need to resize?
I am new to Lazslo having just tried the examples tonight. Laszlo looks pretty cool, but these appear to be issues.
Thanks for the help.
Can a Lazlo application canvas be resized dynamically to fit the browser window or an iframe that contains the application and is scaled by the user?
Example 1: Place the Laszlo app in the left frame of a two frame window. As the browser is resized or the frame is resized by the user, dynamically resize the app canvas to fit the frame.
(The lzx-reference application has this issue, with contents and index in the left frame and the content in the right frame. Both in the vertical and horizontal directions)
Example 2: Laszlo windows "disappear" behind the edge of the canvas and before the edge of the browser viewable area. The canvas needs to scale with changes in the browser's viewable space.
This requires communication with the container. I noticed the following:
LzBrowser.loadURL ( "javascript:alert('hello world')" ) ;
Can I pass out a reference to a canvas resize function on load or call a Laszlo function from the container when I need to resize?
I am new to Lazslo having just tried the examples tonight. Laszlo looks pretty cool, but these appear to be issues.
Thanks for the help.