[Laszlo-dev] Query args width and height processed by LaszloCanvas.lzs#construct()

Raju Bitter rajubitter at me.com
Sat Jul 18 17:47:32 PDT 2009


A user in the forums ran into a problem with full screen mode. Here's  
the thread:
http://forum.openlaszlo.org/showthread.php?t=13774

Here's the test page as well. The left application scales when going  
into fullscree, the right one doesn't. For both the canvas width &  
height are set to 100%. The customer wants to use the following query  
vars attached to the SWF:
http://www.simplylearnt.com:5080/xmlcrm/slTest.swf?test_id=_-epinfoways&type=share&partner=fachak&width=500&height=400

The usage of the args with the name width and height is processed by  
LaszloCanvas.lzs#construct(), here are the relevant lines (line 307-12)
         // Default to arg values
         var width = args.width;
         var height = args.height;
         var bgcolor = args.bgcolor;
         delete args.width;
         delete args.height;
         delete args.bgcolor;

Is that a feature we still use? Looks like it might be used, so we  
should probably advise programmers not too attach any query strings  
with those names to the SWF, if they plan to use full screen.

- Raju



More information about the Laszlo-dev mailing list