I had this issue recently as well. Try dropping this into the AS
file for your TitleWindow component:
override public function localToContent(point:Point):Point {
return point;
}
--- In [email protected], "csewhiff" <[EMAIL PROTECTED]> wrote:
>
>
> I'm having a problem getting the dragEnter event to fire properly
on
> a TitleWindow.
>
> I have a DataGrid with a TabBar above it. I change the contents of
> the DataGrid depending on which tab is selected and items can be
> dragged from the grid and dropped on a tab to add the item to that
> tabs list of items.
>
> This all worked fine when it was a VBox in the main application.
> When I tried to move it to a TitleWindow and make it pop up, the
> dragEnter event fires when the item is dragged below the tabs, not
> on the tabs. The distance below the tabs where the event fires
> appears to be about the same as the height of the top border in
the
> TitleWindow. Almost like it's not taking the top border in to
> account. Horizontally, it appears to be firing at the correct
> position.
>
> I have set the backgroundColor of the TitleWindow so that is not
the
> problem. I have dragEnabled of the DataGrid set to true and
manually
> added dragEnter, dragOver and dragDrop events to the TabBar.
>
> Any ideas?
>
--
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/