I've been playing with the editor tag using XUL.� I can create the editor change the DOM of the contentDocument programmatically and all is good.� The problem I'm having is that after I change the contentDocument (just before the QueryInterface call below)�I then try to scroll the vertical scrollbar to the last line.
I'm using:
��� v = myEditor.docShell.QueryInterface(Components.interfaces.nsITextScroll);
��� v.scrollByLines(100000);
��� v.scrollByLines(100000);
The scrollbar moves however it moves to the end just before the newly inserted nodes. �I think this is happening before the scrollbar size has been recomputed.� Is there an event or method I can call that will guarantee that after the document is changed and that the scrollbar has been recomputed so�I can then scroll to the end.� Or is there a better way of scrolling to the end then what I'm doing.
I've tried both nsIScrollable and nsITextScroll and I've tried doing the scrolling inside of a DOMNodeInserted event handler all of these fail.
Thanks,
Terry.
