Greg,

I tried the mapPointToAncestor() with the top window as the ancestor.  It's
worse then getting the bounds of the textinput, adding the textintput
height, and then adjusting it a little more.

Should the ancestor be something else?  I used the top window on the display
because that is the window that opens the popup.


Bob

On Wed, Mar 24, 2010 at 2:56 PM, Greg Brown <[email protected]> wrote:

> 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