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

Key: LPP-4436
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: -- --
Assignee: Unassigned
Reporter: Arnaldo M
Votes: 0
Watchers: 0
Operations

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

window decrements its x and y coordinates when clicked

Created: 06/Aug/07 11:39 AM   Updated: 21/Aug/07 11:34 AM
Component/s: Components - LZ
Affects Version/s: 4.0.3
Fix Version/s: 4.0.5WaffleCone

Time Tracking:
Not Specified

Environment: SWF7

Severity: Minor
Fixed in Change#: 6,141
Runtime: N/A
Fix in hand: False


 Description  « Hide
Execute this code under SWF7:

<canvas>
  <windowpanel x="600" y="600">
    <text>Click here</text>
  </windowpanel>
</canvas>

Each time you click on the window it moves towards the top-left corner.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Max Carlson - 16/Aug/07 08:34 PM
testcase shows coordinates slightly off in swf:
<canvas debug="true">
  <window x="200" y="200">
    <handler name="onx" args="x">
        Debug.write('x', x)
    </handler>
    <handler name="ony" args="y">
        Debug.write('y', y)
    </handler>
    <text>Click here</text>
  </window>
</canvas>

Max Carlson - 17/Aug/07 06:02 PM
Author: max
Date: 2007-08-17 17:59:23 -0700 (Fri, 17 Aug 2007)
New Revision: 6141

Modified:
   openlaszlo/branches/wafflecone/WEB-INF/lps/lfc/kernel/swf/LzSprite.as
Log:
Change 20070817-maxcarlson-c by maxcarlson@plastik on 2007-08-17 17:26:25 PDT
    in /Users/maxcarlson/openlaszlo/wafflecone
    for http://svn.openlaszlo.org/openlaszlo/branches/wafflecone

Summary: UPDATED: Fix swf mouse coordinate rounding issue

New Features:

Bugs Fixed: LPP-4436 - window decrements its x and y coordinates when clicked

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

Documentation:

Release Notes:

Details: LzSprite.as - Round off coordinates in getMouse()


Tests: See LPP-4436




Modified: openlaszlo/branches/wafflecone/WEB-INF/lps/lfc/kernel/swf/LzSprite.as
===================================================================
--- openlaszlo/branches/wafflecone/WEB-INF/lps/lfc/kernel/swf/LzSprite.as 2007-08-18 00:51:31 UTC (rev 6140)
+++ openlaszlo/branches/wafflecone/WEB-INF/lps/lfc/kernel/swf/LzSprite.as 2007-08-18 00:59:23 UTC (rev 6141)
@@ -930,7 +930,7 @@
   */
 LzSprite.prototype.getMouse = function() {
     if ( ! this.__LZmovieClipRef ) { this.makeContainerResource() };
- return {x: this.__LZmovieClipRef._xmouse, y: this.__LZmovieClipRef._ymouse}
+ return {x: Math.round(this.__LZmovieClipRef._xmouse), y: Math.round(this.__LZmovieClipRef._ymouse)}
 }
 
 /**


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

Mamye Kratt - 21/Aug/07 11:34 AM
(wafflecone branch build r6153)
Testcase works.