Skip to content

Commit

Permalink
Merge pull request #190138 from microsoft/aiday/updateLeftOnModelChange
Browse files Browse the repository at this point in the history
Updating the scroll left position also on model change
  • Loading branch information
aiday-mar authored Aug 11, 2023
2 parents 8f9432b + f3392e8 commit b057249
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export class StickyScrollWidget extends Disposable implements IOverlayWidget {
this._updateWidgetWidth();
}
}));
this._register(this._editor.onDidChangeModel(() => updateScrollLeftPosition()));
updateScrollLeftPosition();

this._register(this._editor.onDidLayoutChange((e) => {
Expand Down

0 comments on commit b057249

Please sign in to comment.