That means: if you have the app running at 600x600 without full screen, and you go into full screen on a 1440x900 screen, the canvas will remain at 600x600 in the upper left corner of the screen.

Of course you can easily avoid that by NOT passing any value through query vars into the Laszlo app, but if you look into the forum post that caused this discussion you'll see that a user got confused by that behavior.

I was just investigating what's going on to help this guy.

On Jul 19, 2009, at 3:46 PM, Sarah Allen wrote:

um... so what is the conflict?

On Jul 19, 2009, at 6:30 AM, Raju Bitter wrote:

Actually it happens on canvas construction, in the construct() method. Which means, it overrides the values in your <canvas /> declaration within LZX. As a result canvas will - even in full screen mode - still report the static width & height passed into the app.

On Jul 19, 2009, at 3:09 AM, Sarah Allen wrote:

It does seem like a useful feature in case you want to use a swf embedded in something that is not a browser (although I suppose you could always write it yourself in code, so maybe it is not worth maintaining)

Just curious... why does it interfere with full screen mode? I would think that would happen long after canvas construct...

On Jul 18, 2009, at 5:47 PM, Raju Bitter wrote:

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







http://www.ultrasaurus.com




Reply via email to