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, "mmmmbeeeeer" <[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 > > <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:vz="*" > width="100%"> > > <mx:Script> > <![CDATA[ > import mx.collections.ArrayCollection; > > [Bindable] > public var compTitle:String; > > [Bindable] > public var compDataProvider:ArrayCollection; > ]]> > </mx:Script> > > <mx:Label text="{compTitle}" width="100%" fontSize="18" > fontWeight="bold" fontFamily="Arial"/> > > <mx:DataGrid id="grid" dataProvider="{compDataProvider}" width="100%" > alternatingItemColors="[#CBDDFE,#FFFFFF]" showHeaders="false" > dragEnabled="true" dropEnabled="true" dragMoveEnabled="true"> > <mx:columns> > <mx:DataGridColumn headerText="Client" dataField="CUSTOMER"/> > <mx:DataGridColumn headerText="Name" dataField="NAME"/> > ... etc > </mx:columns> > </mx:DataGrid> > </mx:VBox> > > > 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/