wood burning stoves 2.0*
The moose likes Flex and the fly likes Detecting browser window border in a scrolling container Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Flex
Bookmark "Detecting browser window border in a scrolling container" Watch "Detecting browser window border in a scrolling container" New topic
Author

Detecting browser window border in a scrolling container

Mark Qian
Greenhorn

Joined: Apr 26, 2012
Posts: 2
I am building a balloon tooltip and the tooltip got cut off by the flash player's border when the target component was scrolled close to the border of browser window so I want to position the balloon according to the distance between target component and window's border in a scrolling environment to avoid the tooltip overlap with borders.


I have two major issues:

1). since the target component (that trigger the tooltip) is in a scrolling container so localToGlobal didn't tell me too much about where the target component is.

2). I draw and position my balloon in updateDisplayList so I didn't have mouse event access ...


Any suggestion will be appreciated.
Iftikhar Arain
Ranch Hand

Joined: Jul 17, 2002
Posts: 95

I understand the problem but sorry I can't help until I can see the code. Please paste the code.


SCJP,SCWCD,IBM UML,FLEX & AIR,MCAD,MCSD, Adobe ACE
Mark Qian
Greenhorn

Joined: Apr 26, 2012
Posts: 2
Question in a different way: how can I measure the real visual distance between the border of flash player and a component in a scrollable container?

thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Detecting browser window border in a scrolling container