[flexcoders] Re: Drag & Drop problem with browser scrolling

2006-07-24 Thread mmmmbeeeeer
I suspect that my post at 5.30am wasn't noticed. If anyone can offer
any insight into this problem I would appreciate it.

Thanks,

Pete


--- In flexcoders@yahoogroups.com, "mmmmber" <[EMAIL PROTECTED]>
wrote:
>
> Here's an interesting problem which I hope someone can help me with.
> 
> I've just started playing with Flex 2 - release version and have
> implemented the following:
> 
> 1. Composite component containing a label and DataGrid in a Vbox
> 
> http://www.adobe.com/2006/mxml"; xmlns:vz="*"
> width="100%">
> 
>   
>
>
> 
>fontWeight="bold" fontFamily="Arial"/>
> 
>alternatingItemColors="[#CBDDFE,#FF]" showHeaders="false"
>dragEnabled="true" dropEnabled="true" dragMoveEnabled="true">
>  
>
>
> ... etc
>  
>
> 
> 
> 
> 2. I have actionscript code in my application file which gets a list of
> categories from server side and iterates over that list requesting a
> list of objects (Jobs in this case) for each category from the server
> side. It then creates one of the above components for each category,
> adds it to the container (a Vbox) in the Application and gives it the
> dataProvider containing the relevant info.
> 
> So far so good - this works fine...
> 
> Now, when I drag a row from the DataGrid in one component to the
> DataGrid in another, it works fine when the browser is at the top of the
> page, however if I scroll the browser window down (the Flash Player
> canvas is bigger than the screen) the dropping gets screwed up. To be
> more precise, it appears as though the drop target is getting the
> dragEnter event when the mouse is not actually in the right place. As I
> scroll the browser window down, the apparent location of the drop target
> (as seen by the code sending the dragEnter event) is offset to the north
> of the visible drop Target component. The further down the browser
> window is scrolled, the more the offset until it just doesn't work at
> all.
> 
> I've tested in both IE6 and Firefox 1.5.0.4 with the same results.
> 
> I'm wondering whether anyone else has seen this behaviour - a search of
> the archives didn't seem to reveal any prior reports.
> 
> Thanks for any help you might be able to offer.
> 
> Cheers,
> 
> P
>









 Yahoo! Groups Sponsor ~--> 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Drag & Drop problem with browser scrolling

2006-07-18 Thread mmmmbeeeeer



Here's an interesting problem which I hope someone can help me with.I've just started playing with Flex 2 - release version and have implemented the following:1. Composite component containing a label and DataGrid in a Vbox                dragEnabled="true" dropEnabled="true" dragMoveEnabled="true">                   ... etc      2. I have actionscript code in my application file which gets a list of categories from server side and iterates over that list requesting a list of objects (Jobs in this case) for each category from the server side. It then creates one of the above components for each category, adds it to the container (a Vbox) in the Application and gives it the dataProvider containing the relevant info.So far so good - this works fine...Now, when I drag a row from the DataGrid in one component to the DataGrid in another, it works fine when the browser is at the top of the page, however if I scroll the browser window down (the Flash Player canvas is bigger than the screen) the dropping gets screwed up. To be more precise, it appears as though the drop target is getting the dragEnter event when the mouse is not actually in the right place. As I scroll the browser window down, the apparent location of the drop target (as seen by the code sending the dragEnter event) is offset to the north of the visible drop Target component. The further down the browser window is scrolled, the more the offset until it just doesn't work at all.I've tested in both IE6 and Firefox 1.5.0.4 with the same results.I'm wondering whether anyone else has seen this behaviour - a search of the archives didn't seem to reveal any prior reports.Thanks for any help you might be able to offer.Cheers,P

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___