It looks like sometimes a call to "set_viewport_position" does not work, or is overwritten by the editor for some very specific file types.
The following code is supposed to scroll vertically any view to position "500" when the file loads. And it prints the new position to the console.
import sublime, sublime_plugin
def on_load(self, view):
view.set_viewport_position((0, 5000), False)
Steps to reproduce the bug:
Save this code as file "bug.py" o the "Packages/User" folder
It looks like sublime text, overwrites the scroll the first time the a file is opened, but not, the next time you open the same file [from sidebar]
The problem is always reproducible when you open a file from -> File -> Open Recent -> Pick the file.
Original report http://www.sublimetext.com/forum/viewtopic.php?f=3&t=6237
Looks fixed? :D
No.. it does not work!