mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
parent
3a3c5c4b1c
commit
44c9f407c3
|
@ -267,7 +267,8 @@ export abstract class AbstractTextEditor<T extends IEditorViewState> extends Abs
|
|||
}
|
||||
|
||||
return {
|
||||
scrollTop: editor.getScrollTop(),
|
||||
// The top position can vary depending on the view zones (find widget for example)
|
||||
scrollTop: editor.getScrollTop() - editor.getTopForLineNumber(1),
|
||||
scrollLeft: editor.getScrollLeft(),
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue