File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/vs/workbench/contrib/mergeEditor/browser/view Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 66import { h } from 'vs/base/browser/dom' ;
77import { Disposable } from 'vs/base/common/lifecycle' ;
88import { ICodeEditor , IOverlayWidget , IViewZoneChangeAccessor } from 'vs/editor/browser/editorBrowser' ;
9+ import { Event } from 'vs/base/common/event' ;
910
1011export abstract class FixedZoneWidget extends Disposable {
1112 private static counter = 0 ;
@@ -41,7 +42,9 @@ export abstract class FixedZoneWidget extends Disposable {
4142 } ) ;
4243 viewZoneIdsToCleanUp . push ( this . viewZoneId ) ;
4344
44- this . widgetDomNode . style . left = this . editor . getLayoutInfo ( ) . contentLeft + 'px' ;
45+ this . _register ( Event . runAndSubscribe ( this . editor . onDidLayoutChange , ( ) => {
46+ this . widgetDomNode . style . left = this . editor . getLayoutInfo ( ) . contentLeft + 'px' ;
47+ } ) ) ;
4548
4649 this . editor . addOverlayWidget ( this . overlayWidget ) ;
4750
You can’t perform that action at this time.
0 commit comments