History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: LPP-4151
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: -- --
Assignee: Mamye Kratt
Reporter: Max Carlson
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OpenLaszlo

Drawview LZX cachebitmap attribute values have no effect

Created: 15/Jun/07 05:01 PM   Updated: 27/Sep/07 08:55 AM
Component/s: Extensions - drawview
Affects Version/s: Legals
Fix Version/s: RingDing (4.1)

Time Tracking:
Not Specified

Severity: Minor
Fixed in Change#: 5,467
Fixed in branch: branches/legals
Runtime: N/A
Fix in hand: True


 Description  « Hide
<canvas debug="true" >
    
<drawview bgcolor="red" clip="true" cachebitmap="false"
        width="200" height="200"
        onclick="Debug.write('onclick',this)"
        onmouseup="Debug.write('onmouseup',this)" />
    
</canvas>

Setting the cachebitmap value has no effect because the value is overridden in script below.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Max Carlson - 18/Jun/07 09:28 PM
Author: max
Date: 2007-06-18 21:27:44 -0700 (Mon, 18 Jun 2007)
New Revision: 5467

Modified:
   openlaszlo/branches/legals/lps/components/extensions/drawview.lzx
Log:
Change 20070618-maxcarlson-q by maxcarlson@plastik on 2007-06-18 18:35:17 PDT
    in /Users/maxcarlson/openlaszlo/legals-clean
    for http://svn.openlaszlo.org/openlaszlo/branches/legals

Summary: UPDATED: Fix cachebitmap LZX attribute setting in drawview

New Features:

Bugs Fixed: LPP-4151 - Drawview LZX cachebitmap attribute values have no effect

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

Documentation:

Release Notes:

Details: drawview.lzx - Check args['cachebitmap'] in construct method, since that's where the property is set.
    

Tests: See LPP-4151. Red box should be clickable in swf8.



Modified: openlaszlo/branches/legals/lps/components/extensions/drawview.lzx
===================================================================
--- openlaszlo/branches/legals/lps/components/extensions/drawview.lzx 2007-06-19 01:42:39 UTC (rev 5466)
+++ openlaszlo/branches/legals/lps/components/extensions/drawview.lzx 2007-06-19 04:27:44 UTC (rev 5467)
@@ -520,7 +520,7 @@
                 this.__LINETO_OP = 1;
                 this.__QCURVE_OP = 2;
                 this.context = this.getMCRef();
- this.context.cacheAsBitmap = this.cachebitmap;
+ this.context.cacheAsBitmap = args['cachebitmap'] != null ? args['cachebitmap'] : this.cachebitmap;
                 this.beginPath();
 
                 new LzDelegate( this , "_oninit" , this , "oninit" );


_______________________________________________
Laszlo-checkins mailing list
Laszlo-checkins@openlaszlo.org
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins

Mamye Kratt - 28/Jun/07 03:40 PM
(4.0 branch (4.0.3) local build r5544)

Testcase runs.

Mamye Kratt - 28/Jun/07 03:40 PM
Need to test in legals branch.

Mamye Kratt - 17/Jul/07 11:48 AM
Need to test in legals.