Author: max
Date: 2006-11-10 17:56:03 -0800 (Fri, 10 Nov 2006)
New Revision: 2483

Modified:
   openlaszlo/branches/legals/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js
Log:
Change 20061110-maxcarlson-I by [EMAIL PROTECTED] on 2006-11-10 13:43:55 PST
    in /Users/maxcarlson/openlaszlo/legals

Summary: Fix clipping for dhtml sprites with a width or height of 0

New Features:

Bugs Fixed: LPP-3031 - setting view's height to 0 in DHTML application does not 
update clip rectangle

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

Documentation:

Release Notes:

Details:


Tests: See LPP-3031

Files:
M      WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js

Changeset: 
http://svn.openlaszlo.org/openlaszlo/patches/20061110-maxcarlson-I.tar

Modified: openlaszlo/branches/legals/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js
===================================================================
--- openlaszlo/branches/legals/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js 
2006-11-10 21:47:21 UTC (rev 2482)
+++ openlaszlo/branches/legals/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js 
2006-11-11 01:56:03 UTC (rev 2483)
@@ -756,7 +756,7 @@
 }
 
 LzSprite.prototype.__updateClip = function() {
-    if (this.clip && this.width && this.height) {
+    if (this.clip && this.width != null && this.width >= 0 && this.height != 
null && this.height >= 0) {
         //Debug.info('setClip', 'rect(0px ' + this.width + 'px ' + this.height 
+ 'px 0px)');
         this.__LZdiv.style.clip = 'rect(0px ' + this.width + 'px ' + 
this.height + 'px 0px)';
     } else if (this.__LZdiv.style.clip) {


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

Reply via email to