updating left position on model change

This commit is contained in:
Aiday Marlen Kyzy 2023-08-10 08:58:35 +02:00
parent d62534a60f
commit 042b44aee5
No known key found for this signature in database
GPG key ID: 24A8B53DBD26FF4E

View file

@ -73,6 +73,9 @@ export class StickyScrollWidget extends Disposable implements IOverlayWidget {
this._updateWidgetWidth();
}
}));
this._register(this._editor.onDidChangeModel(() => {
updateScrollLeftPosition();
}));
updateScrollLeftPosition();
this._register(this._editor.onDidLayoutChange((e) => {