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 {
13891389 this . _slider . setHeight ( layout . sliderHeight ) ;
13901390
13911391 // 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 ) ;
13961394 this . _sliderHorizontal . setTop ( 0 ) ;
13971395 this . _sliderHorizontal . setHeight ( layout . sliderHeight ) ;
13981396
You can’t perform that action at this time.
0 commit comments