Change 20090617-maxcarlson-T by maxcarlson@Bank on 2009-06-17 14:19:40 PDT     in /Users/maxcarlson/openlaszlo/trunk-clean     for http://svn.openlaszlo.org/openlaszlo/trunk
Change 20090617-maxcarlson-T by maxcarlson@Bank on 2009-06-17 14:19:40 PDT
    in /Users/maxcarlson/openlaszlo/trunk-clean
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Fix view.getMouse() when canvas is offset on the page

Bugs Fixed: LPP-8270 - view.getMouse('x') and view.getMouse('y') incorrect in DHTML when canvas is not at origin

Technical Reviewer: andre.bargull@udo.edu
QA Reviewer: hminsky

Details: After thinking about it, I realized that since __getPos() returns the absolute position relative to the origin, the behavior should be the same for all sprites.

Tests: See LPP-8270.  I modified the testcase to have correct paths and show canvas coordinates to validate those:
    <handler name="onclick">
        var xPos = this.getMouse('x');
        var yPos = this.getMouse('y');
        Debug.write("location: ", xPos, yPos);
        var xPos = canvas.getMouse('x');
        var yPos = canvas.getMouse('y');
        Debug.write("canvas location: ", xPos, yPos);
    </handler>



git-svn-id: d62bde4b5aa582fdf07c8d403e53e0399a7ed285@14189 fa20e4f9-1d0a-0410-b5f3-dc9c16b8b17c

mcarlson/openlaszlo,mcarlson/openlaszlo,mcarlson/openlaszlo,mcarlson/openlaszlo,mcarlson/openlaszlo,mcarlson/openlaszlo,mcarlson/openlaszlo