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

max@openlaszlo.org max at openlaszlo.org
Sat Jun 7 20:30:24 PDT 2008


Author: max
Date: 2008-06-07 20:30:19 -0700 (Sat, 07 Jun 2008)
New Revision: 9508

Modified:
   openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js
Log:
Change 20080606-maxcarlson-4 by maxcarlson at Roboto on 2008-06-06 20:43:40 PDT
    in /Users/maxcarlson/openlaszlo/trunk-clean
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Fix canvas clipping in dhtml

New Features:

Bugs Fixed: LPP-6133

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

Details: Fix a logic braino in LzSprite
    

Tests: http://localhost:8080/trunk-clean/demos/lzpix/app.lzx?lzr=dhtml&lzt=html doesn't show controls hanging outside the canvas boundary.



Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js	2008-06-07 15:19:54 UTC (rev 9507)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js	2008-06-08 03:30:19 UTC (rev 9508)
@@ -58,7 +58,7 @@
         if (p.resourceroot) {
             lz.embed.options.resourceroot = p.resourceroot;
         }
-        if (! this.quirks.canvas_div_cannot_be_clipped && width && widthispercentage && height && heightispercentage) {
+        if (! this.quirks.canvas_div_cannot_be_clipped && width && ! widthispercentage && height && ! heightispercentage) {
             div.style.clip = 'rect(0px ' + this._w + ' ' + this._h + ' 0px)';
             div.style.overflow = 'hidden';
         }



More information about the Laszlo-checkins mailing list