Author: max
Date: 2007-01-23 11:01:00 -0800 (Tue, 23 Jan 2007)
New Revision: 3488

Modified:
   openlaszlo/branches/legals/WEB-INF/lps/lfc/kernel/dhtml/LzScreenKernel.js
Log:
Change 20070122-maxcarlson-F by [EMAIL PROTECTED] on 2007-01-22 19:06:55 PST
    in /Users/maxcarlson/openlaszlo/legals

Summary: Fix SWF canvas scaling, update wrapper to fix DHTML sizing in IE.

New Features:

Bugs Fixed: LPP-3461 - swf: Text/Views scale when browser window is scaled

Technical Reviewer: promanik
QA Reviewer: hminsky
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details: LzScreenKernel.as - Stage.align and Stage.scaleMode properties need to 
be set even without scaling.

LzScreenKernel.js - Use eventlistener rather than clobbering onresize event

embednew.js - percentage values changed to 100% for container div now that 
scaling is done in the runtime


Tests: LPP-3461 test passes, IE scaling now normal.

Files:
M      WEB-INF/lps/lfc/kernel/swf/LzScreenKernel.as
M      WEB-INF/lps/lfc/kernel/dhtml/LzScreenKernel.js
M      lps/includes/source/embednew.js

Changeset: 
http://svn.openlaszlo.org/openlaszlo/patches/20070122-maxcarlson-F.tar

Modified: 
openlaszlo/branches/legals/WEB-INF/lps/lfc/kernel/dhtml/LzScreenKernel.js
===================================================================
--- openlaszlo/branches/legals/WEB-INF/lps/lfc/kernel/dhtml/LzScreenKernel.js   
2007-01-23 18:35:30 UTC (rev 3487)
+++ openlaszlo/branches/legals/WEB-INF/lps/lfc/kernel/dhtml/LzScreenKernel.js   
2007-01-23 19:01:00 UTC (rev 3488)
@@ -51,7 +51,11 @@
         Debug.write('LzScreenKernel event', {width: LzScreenKernel.width, 
height: LzScreenKernel.height});
     }
     ,__init: function() {
-        window.top.onresize = LzScreenKernel.__resizeEvent;
+        if (window.addEventListener) {
+            window.addEventListener('resize', LzScreenKernel.__resizeEvent, 
false)
+        } else if (window.attachEvent){
+            window.attachEvent('onresize', LzScreenKernel.__resizeEvent)
+        }
     }
     ,__callback: null
     ,__scope: null


_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins

Reply via email to