Glavin001/atom-coffeescript-preview

Follow scroll of CoffeeScript tab and sync to JS tab

Glavin001 opened this issue · 7 comments

Follow scroll of CoffeeScript tab and sync to JS tab

+1 much needed :)

This is becoming difficult..

Getting total height of clipped element: http://stackoverflow.com/a/5627286/2578205

Looks like the height of the scroll-view element is fixed to be larger and dynamically recalculated on Atom's scrolling.
image

This is likely internally handled by Atom. Will research into Atom source code later.

@kevinsawicki would you be able to point me in the right direction for this? I am trying to determine where the Editor has scrolled to. I was trying to get the scrollHeight of the scroll-view however (as shown above) it seems that the height is forced to be bigger (height: 5700px) than the actual content and so the numbers do not add up. Any help would be greatly appreciated!

The Editor class has a getScrollTop method that should work for this I would think.

Great! I'll take a look. Thanks, again!

Continuing on new package here: Glavin001/atom-preview#26