File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
src/vs/editor/browser/widget/diffEditorWidget2 Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -235,19 +235,16 @@ export class DiffEditorWidget2 extends DelegatingEditor implements IDiffEditor {
235
235
const sashLeft = this . _sash . read ( reader ) ?. sashLeft . read ( reader ) ;
236
236
237
237
const originalWidth = sashLeft ?? Math . max ( 5 , this . _editors . original . getLayoutInfo ( ) . decorationsLeft ) ;
238
+ const modifiedWidth = width - originalWidth - ( this . _options . renderOverviewRuler . read ( reader ) ? OverviewRulerPart . ENTIRE_DIFF_OVERVIEW_WIDTH : 0 ) ;
238
239
239
240
this . elements . original . style . width = originalWidth + 'px' ;
240
241
this . elements . original . style . left = '0px' ;
241
242
242
- this . elements . modified . style . width = ( width - originalWidth ) + 'px' ;
243
+ this . elements . modified . style . width = modifiedWidth + 'px' ;
243
244
this . elements . modified . style . left = originalWidth + 'px' ;
244
245
245
- this . _editors . original . layout ( { width : originalWidth , height : height } ) ;
246
- this . _editors . modified . layout ( {
247
- width : width - originalWidth -
248
- ( this . _options . renderOverviewRuler . read ( reader ) ? OverviewRulerPart . ENTIRE_DIFF_OVERVIEW_WIDTH : 0 ) ,
249
- height
250
- } ) ;
246
+ this . _editors . original . layout ( { width : originalWidth , height } ) ;
247
+ this . _editors . modified . layout ( { width : modifiedWidth , height } ) ;
251
248
this . _reviewPane . layout ( 0 , width , height ) ;
252
249
253
250
return {
You can’t perform that action at this time.
0 commit comments