Seems like this behavior could easily be built into a component which is a subclass of TextInput. That way you'd only have to make on small change to your existing code.
One hitch. I'm not sure on the best way to locate the proper container dynamically from the component that would need scrolling. --- In [email protected], "Matt Chotin" <[EMAIL PROTECTED]> wrote: > You could put focusIn handlers on your TextInputs which would run some > form of "ensureVisible" check. > > > > function ensureVisible(component, container) : Void > > { > > var containerBottom = container.vPosition + container.height; > > var componentBottom = component.y + component.height; > > if (componentBottom > containerBottom) > > { > > container.vPosition += componentBottom - containerBottom + > someMagicAmountThatBringsThingsMoreVisible; > > } > > } > > > > If you worry about shift-tabbing so that the form goes up you'd need to > basically have another check that makes sure the top is greater than the > vPosition. > > > > This is basic logic obviously but it should give you some ideas. > > > > Matt > > 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/

