Author: max
Date: 2007-01-23 11:01:57 -0800 (Tue, 23 Jan 2007)
New Revision: 3489
Modified:
openlaszlo/branches/legals/WEB-INF/lps/lfc/kernel/swf/LzScreenKernel.as
openlaszlo/branches/legals/lps/includes/source/embednew.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/swf/LzScreenKernel.as
===================================================================
--- openlaszlo/branches/legals/WEB-INF/lps/lfc/kernel/swf/LzScreenKernel.as
2007-01-23 19:01:00 UTC (rev 3488)
+++ openlaszlo/branches/legals/WEB-INF/lps/lfc/kernel/swf/LzScreenKernel.as
2007-01-23 19:01:57 UTC (rev 3489)
@@ -8,6 +8,10 @@
* @subtopic AS2
*/
+// necessary for consistent behavior - in netscape browsers HTML is ignored
+Stage.align = ('canvassalign' in global && global.canvassalign != null) ?
global.canvassalign : "LT";
+Stage.scaleMode = ('canvasscale' in global && global.canvasscale != null) ?
global.canvasscale : "noScale";
+
// Receives mouse events from the runtime
// Sent from org/openlaszlo/compiler/SWFFile.java
var LzScreenKernel = {
@@ -21,10 +25,6 @@
//Debug.write('LzScreenKernel event', {width: LzScreenKernel.width,
height: LzScreenKernel.height});
}
,__init: function() {
- // necessary for consistent behavior - in netscape browsers HTML is
ignored
- Stage.align = ('canvassalign' in global && global.canvassalign !=
null) ? global.canvassalign : "LT";
- Stage.scaleMode = ('canvasscale' in global && global.canvasscale !=
null) ? global.canvasscale : "noScale";
-
var listener = {
onResize: LzScreenKernel.__resizeEvent
}
Modified: openlaszlo/branches/legals/lps/includes/source/embednew.js
===================================================================
--- openlaszlo/branches/legals/lps/includes/source/embednew.js 2007-01-23
19:01:00 UTC (rev 3488)
+++ openlaszlo/branches/legals/lps/includes/source/embednew.js 2007-01-23
19:01:57 UTC (rev 3489)
@@ -1,5 +1,5 @@
//* A_LZ_COPYRIGHT_BEGIN ******************************************************
-//* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+//* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
//* Use is subject to license terms. *
//* A_LZ_COPYRIGHT_END ********************************************************
@@ -133,8 +133,8 @@
}
var url = properties.url;
window.bgcolor = properties.bgcolor;
- window.width = properties.width.indexOf('%') == -1 ? properties.width
+ 'px' : properties.width;
- window.height = properties.height.indexOf('%') == -1 ?
properties.height + 'px' : properties.height;
+ window.width = properties.width.indexOf('%') == -1 ? properties.width
+ 'px' : '100%';
+ window.height = properties.height.indexOf('%') == -1 ?
properties.height + 'px' : '100%';
var sp = url.split('?');
url = sp[0];
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins