Author: max
Date: 2007-10-17 15:00:47 -0700 (Wed, 17 Oct 2007)
New Revision: 6891

Modified:
   openlaszlo/branches/wafflecone/lps/includes/source/lzhistory.js
Log:
Change 20071015-maxcarlson-a by [EMAIL PROTECTED] on 2007-10-15 15:03:05 PDT
    in /Users/maxcarlson/openlaszlo/wafflecone
    for http://svn.openlaszlo.org/openlaszlo/branches/wafflecone

Summary: UPDATED: Fix display of small applications in IE7

New Features:

Bugs Fixed: LPP-4884

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

Documentation:

Release Notes:

Details: Reconfigure the styling of iframes so it no longer breaks IE 7.

Tests:  Small applications display in IE 7 again in the laszlo explorer, 
http://192.168.1.122:8080/wafflecone/examples/contactlist/contactlist.lzx and 
contactlist.html no longer show an iframe. 



Modified: openlaszlo/branches/wafflecone/lps/includes/source/lzhistory.js
===================================================================
--- openlaszlo/branches/wafflecone/lps/includes/source/lzhistory.js     
2007-10-17 19:50:33 UTC (rev 6890)
+++ openlaszlo/branches/wafflecone/lps/includes/source/lzhistory.js     
2007-10-17 22:00:47 UTC (rev 6891)
@@ -35,13 +35,17 @@
             // use an iframe;
             var i = document.createElement('iframe');
             Lz.__setAttr(i, 'id', 'lzHistory');
-            Lz.__setAttr(i, 'border', '0');
+            Lz.__setAttr(i, 'frameborder', 'no');
+            Lz.__setAttr(i, 'scrolling', 'no');
+            Lz.__setAttr(i, 'width', '0');
+            Lz.__setAttr(i, 'height', '0');
             document.body.appendChild(i);
+            i = document.getElementById('lzHistory');
+            _this._iframe = i;
+            i.style.display = 'none';
             i.style.position = 'absolute';
-            i.style.display = 'none';
-            i.style.left = '-1000px';
-            _this._iframe = document.getElementById('lzHistory');
-            var doc = _this._iframe.contentWindow.document;
+            i.style.left = '-999px';
+            var doc = i.contentDocument || i.contentWindow.document;
             doc.open();
             doc.close();
             if (_this._currentstate != '') doc.location.hash = '#' + 
_this._currentstate;


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

Reply via email to