File tree Expand file tree Collapse file tree
src/vs/editor/browser/widget Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -517,6 +517,18 @@ export class DiffEditorWidget extends Disposable implements editorBrowser.IDiffE
517517 }
518518 } ) ) ;
519519
520+ this . _register ( editor . onDidContentSizeChange ( e => {
521+ const width = this . originalEditor . getContentWidth ( ) + this . modifiedEditor . getContentWidth ( ) + DiffEditorWidget . ONE_OVERVIEW_WIDTH ;
522+ const height = Math . max ( this . modifiedEditor . getContentHeight ( ) , this . originalEditor . getContentHeight ( ) ) ;
523+
524+ this . _onDidContentSizeChange . fire ( {
525+ contentHeight : height ,
526+ contentWidth : width ,
527+ contentHeightChanged : e . contentHeightChanged ,
528+ contentWidthChanged : e . contentWidthChanged
529+ } ) ;
530+ } ) ) ;
531+
520532 return editor ;
521533 }
522534
@@ -563,8 +575,8 @@ export class DiffEditorWidget extends Disposable implements editorBrowser.IDiffE
563575 } ) ) ;
564576
565577 this . _register ( editor . onDidContentSizeChange ( e => {
566- const width = this . originalEditor . getContentWidth ( ) + this . modifiedEditor . getContentWidth ( ) ;
567- const height = this . modifiedEditor . getContentHeight ( ) ;
578+ const width = this . originalEditor . getContentWidth ( ) + this . modifiedEditor . getContentWidth ( ) + DiffEditorWidget . ONE_OVERVIEW_WIDTH ;
579+ const height = Math . max ( this . modifiedEditor . getContentHeight ( ) , this . originalEditor . getContentHeight ( ) ) ;
568580
569581 this . _onDidContentSizeChange . fire ( {
570582 contentHeight : height ,
You can’t perform that action at this time.
0 commit comments