How are you currently determining the position of the popup? I'd suggest using 
Component#mapPointToAncestor() if you are not already doing so. You can use 
this method to convert a point in your text input's coordinate space to the 
display's coordinate space.

Note that, when your popup is open, you may want to listen for scroll wheel 
events on the display and either close or reposition the popup - otherwise, it 
may not remain aligned with the text input.


On Mar 24, 2010, at 3:17 PM, Robert Piotrowski wrote:

> I'm trying to popup a menu related to a textinput that is on a form.  It was 
> working fine until I put in a scroll pane.  Once I scroll it, the popup 
> appears lower.
> 
> I there a way to subtract the scrolled distance from the textinput's Y bound ?
> 
> 
> Thanks
> Bob

Reply via email to