[Laszlo-checkins] r14266 - openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml

ptw@openlaszlo.org ptw at openlaszlo.org
Wed Jul 1 12:02:38 PDT 2009


Author: ptw
Date: 2009-07-01 12:02:37 -0700 (Wed, 01 Jul 2009)
New Revision: 14266

Modified:
   openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js
Log:
Change 20090624-ptw-H by ptw at dueling-banjos.home on 2009-06-24 15:48:05 EDT
    in /Users/ptw/OpenLaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Add some CSS3 defaults to lzswf*text styles

Bugs Fixed:
LPP-6374: Add option to make DHTML text wrapping match swf
LPP-8251 DHTML: appearance of <inputtext> in Safari
LPP-8276: in DHTML inputtext and edittext don't wrap unless whitespace exists

NOTE: These bugs are ONLY fixed in browsers that support CSS3, eg.,
Mozilla 3.1, Safari 4, and IE8

Technical Reviewer: a.bargull at intensis.de (pending), hminsky (Message-ID: <8c61fad60906260937s6c895775h29ac1a136ca8ef59 at mail.gmail.com>)
QA Reviewer: maynard (pending)

Details:
    Added CSS3 style defaults that will make text wrapping and display
    more like swf

Tests:
    Test case from bug reports:  Works correctly in Firefox 3.1 and
    Safari 4.  I don't know any other browsers that support CSS3, so
    don't expect it to work elsewhere.



Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js	2009-07-01 08:00:05 UTC (rev 14265)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js	2009-07-01 19:02:37 UTC (rev 14266)
@@ -329,7 +329,10 @@
         textIndent: '0px',
         // To match swf font metrics
         letterSpacing: '0.025em',
-        textDecoration: 'none'
+        textDecoration: 'none',
+        // CSS3 browsers, for swf compatibilty
+        wordWrap: 'break-word',
+        MsWordBreak: 'break-all'
     },
     lzinputtext: {
         fontFamily: 'Verdana,Vera,sans-serif',
@@ -364,7 +367,12 @@
         textIndent: '0px',
         // To match swf font metrics
         letterSpacing: '0.025em',
-        textDecoration: 'none'
+        textDecoration: 'none',
+        // CSS3 browsers, for swf compatibilty
+        wordWrap: 'break-word',
+        MsWordBreak: 'break-all',
+        outline: 'none',
+        resize: 'none'
     },
     lzswfinputtextmultiline: {
         fontFamily: 'Verdana,Vera,sans-serif',
@@ -384,7 +392,12 @@
         textIndent: '0px',
         // To match swf font metrics
         letterSpacing: '0.025em',
-        textDecoration: 'none'
+        textDecoration: 'none',
+        // CSS3 browsers, for swf compatibilty
+        wordWrap: 'break-word',
+        MsWordBreak: 'break-all',
+        outline: 'none',
+        resize: 'none'
     },
     lztextlink: {
         cursor: 'pointer'



More information about the Laszlo-checkins mailing list