aachyee / google-desktop-sdk

Automatically exported from code.google.com/p/google-desktop-sdk
0 stars 0 forks source link

ondragdrop event.x and event.y are not correct on resized gadget #139

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create gadget using ondragdrop with height of 250 and width of 250
2. Re-size the gadget to 50%
2. Drag a file on to the bottom right corner of gadget. 

What is the expected output? What do you see instead?
You should still expect event.x=250 and event.y=250 like onclick when a gadget 
is resized. 
You get event.x=125 and event.y=125.

What version of the product are you using? On what operating system?
Google Desktop 5.9.1005.12335-en-pb
Windows 7 x64

Please provide any additional information below.
onclick returns the correct event.x and event.y while ondragdrop does not 
calculate the correct scale for the mouse event and is give the actual pixel 
coordinate of the scaled gadget.

Original issue reported on code.google.com by patrick....@gmail.com on 21 Apr 2011 at 8:57

Attachments: