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.
_______________________________________________
dev-tech-editor mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-editor

Reply via email to