mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
added some comments
This commit is contained in:
@@ -710,11 +710,13 @@ export class ViewLines extends ViewPart implements IVisibleLinesHost<ViewLine>,
|
||||
|
||||
if (!shouldIgnoreScrollOff) {
|
||||
const context = Math.min((viewportHeight / this._lineHeight) / 2, this._cursorSurroundingLines);
|
||||
if (this._stickyScrollEnabled && source !== 'api') {
|
||||
console.log('context : ', context);
|
||||
if (this._stickyScrollEnabled) {
|
||||
paddingTop = Math.max(context, this._maxNumberStickyLines) * this._lineHeight;
|
||||
} else {
|
||||
paddingTop = context * this._lineHeight;
|
||||
}
|
||||
console.log('paddingTop : ', paddingTop);
|
||||
paddingBottom = Math.max(0, (context - 1)) * this._lineHeight;
|
||||
} else {
|
||||
if (!minimalReveal) {
|
||||
|
||||
Reference in New Issue
Block a user