File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/vs/editor/browser/viewParts/minimap Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1389,10 +1389,8 @@ class InnerMinimap extends Disposable {
1389
1389
this . _slider . setHeight ( layout . sliderHeight ) ;
1390
1390
1391
1391
// Compute horizontal slider coordinates
1392
- const scrollLeftChars = renderingCtx . scrollLeft / this . _model . options . typicalHalfwidthCharacterWidth ;
1393
- const horizontalSliderLeft = Math . min ( this . _model . options . minimapWidth , Math . round ( scrollLeftChars * this . _model . options . minimapCharWidth / this . _model . options . pixelRatio ) ) ;
1394
- this . _sliderHorizontal . setLeft ( horizontalSliderLeft ) ;
1395
- this . _sliderHorizontal . setWidth ( this . _model . options . minimapWidth - horizontalSliderLeft ) ;
1392
+ this . _sliderHorizontal . setLeft ( 0 ) ;
1393
+ this . _sliderHorizontal . setWidth ( this . _model . options . minimapWidth ) ;
1396
1394
this . _sliderHorizontal . setTop ( 0 ) ;
1397
1395
this . _sliderHorizontal . setHeight ( layout . sliderHeight ) ;
1398
1396
You can’t perform that action at this time.
0 commit comments