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 6
6
import { h } from 'vs/base/browser/dom' ;
7
7
import { Disposable } from 'vs/base/common/lifecycle' ;
8
8
import { ICodeEditor , IOverlayWidget , IViewZoneChangeAccessor } from 'vs/editor/browser/editorBrowser' ;
9
+ import { Event } from 'vs/base/common/event' ;
9
10
10
11
export abstract class FixedZoneWidget extends Disposable {
11
12
private static counter = 0 ;
@@ -41,7 +42,9 @@ export abstract class FixedZoneWidget extends Disposable {
41
42
} ) ;
42
43
viewZoneIdsToCleanUp . push ( this . viewZoneId ) ;
43
44
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
+ } ) ) ;
45
48
46
49
this . editor . addOverlayWidget ( this . overlayWidget ) ;
47
50
You can’t perform that action at this time.
0 commit comments