That's a value in pixels that I have to set.  
I should probably document better what querySelector(.ace_gutter-cell).clientHeight is.

--  
Hoa V. Dinh


On Sunday, May 18, 2014 at 6:05 AM, Devon Carew wrote:

> In ide/app/lib/ace.dart:
> > @@ -703,6 +716,15 @@ class AceManager { > } > > void _handleGotoLineViewClosed(_) => focus(); > + > + void _scrollToBeginningOfDocument(_) { > + _aceEditor.session.scrollTop = 0; > + } > + > + void _scrollToEndOfDocument(_) { > + int lineHeight = html.querySelector('.ace_gutter-cell').clientHeight;  
> Hmm, I wish there was a better way to do this using the ace apis. What if you set the scrollTop position to the number of total lines minus the number of visible lines?
>  
> —
> Reply to this email directly or view it on GitHub (https://github.com/dart-lang/spark/pull/1957/files#r12773585).
>  
>  
>