[Looking for some early feedback on this.  I have it working in DHTML  
and swf8, but am getting a blank display in swf9.  If you have some  
ideas, I'd appreciate them.  Otherwise, just a critique on the general  
approach, if you think it is the right way to go, etc.]

Change 20090826-ptw-X by [email protected] on 2009-08-26 16:45:10 EDT
     in /Users/ptw/OpenLaszlo/trunk-2
     for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Allow canvas resizing

Bugs Fixed:  LPP-6535 Allow canvas size to be set dynamically to a new  
physical size

Technical Reviewer: max (pending)
QA Reviewer: hminsky (pending)

Documentation:
     The canvas width and height values are no longer read-only.  They
     may be set at run time.

Details:
     Basically, changing the canvas dimensions actually changes the
     dimensions of the app container div in the browser.  The canvas
     itself, whether a DHTML div or swf <embed> is set to follow the
     size of it's container div.  This allows us to set the size
     dynamically to either a pixel dimension or a percentage of the
     browser window (assuming the container app is the top div in the
     <body>).

Tests:
     Calling canvas.setAttribute('height', ...) or 'width' with various
     values.

Files:
M      WEB-INF/lps/lfc/kernel/swf/LzSprite.as
M      WEB-INF/lps/lfc/kernel/dhtml/LzTimeKernel.js
M      WEB-INF/lps/lfc/kernel/dhtml/LzKeyboardKernel.js
M      WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js
M      WEB-INF/lps/lfc/kernel/dhtml/LzContextMenuKernel.lzs
M      WEB-INF/lps/lfc/kernel/dhtml/LzTextSprite.js
M      WEB-INF/lps/lfc/kernel/dhtml/LzScreenKernel.js
M      WEB-INF/lps/lfc/kernel/dhtml/LzMouseKernel.js
M      WEB-INF/lps/lfc/kernel/dhtml/LzInputTextSprite.js
M      WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
M      WEB-INF/lps/lfc/kernel/Library.lzs
M      WEB-INF/lps/lfc/views/LaszloView.lzs
M      WEB-INF/lps/lfc/views/LaszloCanvas.lzs
M      lps/includes/source/embednew.js

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20090826-ptw-X.tar
_______________________________________________
Laszlo-reviews mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-reviews

Reply via email to