Re: nsIDOMNSHTMLInputElement horizontal auto scrolling

Neil <[email protected]>
Newsgroups gmane.comp.mozilla.devel.editor
Message-ID <[email protected]>
André Pedralho wrote:

> I'm trying to make a virtual keyboard to interact with a 
> nsIDOMNSHTMLInputElement. I'm can write inside the editor fine, 
> however, when the caret reaches the "visual" end of the editor, this 
> one is not scrolled right, and then I can't see the characters typed 
> after its end. I mean, if the typed string is bigger than the editor 
> size you can't see new characters typed and appended to the old 
> string. I think it would be something like a scrollIntoView feature.
> Can you help me?

I think you can QI your element to an nsIDOMNSEditableElement then call 
GetEditor to get an nsIEditor then call GetSelectionController to get an 
nsISelectionController then call ScrollSelectionIntoView but I don't 
have an example of how to do that.

-- 
Warning: May contain traces of nuts.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.