[Laszlo-dev] Proposal: change the default canvas width to 100%

Oliver Steele steele at laszlosystems.com
Fri Jun 3 07:17:02 PDT 2005


The default canvas width is currently 500 pixels.  This means that if  
you write a simple hello world application:
   <canvas>
     <window>
       <text>Hello world</text>
     </window>
   </canvas>
and drag the window to the right, it starts getting clipped, and then  
disappears, about halfway across any reasonable sized browser window.

Even worse, the embedded debugger window gets clipped too.  if you  
lay out some applications elements on the left, you can't drag the  
debugger very far to the right to uncover them, before it disappears.

This was a necessary limitation prior to OpenLaszlo 3.0, because we  
had to pick some default canvas width, and if it was too large then  
some internal buffers ended up being unreasonably large (due to the  
way text had to be implemented for swf5).  However, OpenLaszlo 3.0  
supports proportional canvas width and height, and no longer has the  
text limitations that swf5 support required.

I propose that the default canvas width be changed to 100%.

This is a backwards incompatible change, but only for programs that  
used the default canvas width.  I believe that the defaults were only  
used during development, not for deployed applications, so I propose  
that we make the change right away (in the lps-dev branch, and for  
the next major release) without any transition plan or bwcompat  
warning mode.

Any objections?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://openlaszlo.org/pipermail/laszlo-dev/attachments/20050603/78b65ff2/attachment.html


More information about the Laszlo-dev mailing list