File tree 1 file changed +2
-1
lines changed
src/vs/editor/contrib/find/browser
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,7 @@ export class FindWidget extends Widget implements IOverlayWidget {
109
109
110
110
let checkEditorWidth = ( ) => {
111
111
let editorWidth = this . _codeEditor . getConfiguration ( ) . layoutInfo . width ;
112
+ let minimapWidth = this . _codeEditor . getConfiguration ( ) . layoutInfo . minimapWidth ;
112
113
let collapsedFindWidget = false ;
113
114
let reducedFindWidget = false ;
114
115
let narrowFindWidget = false ;
@@ -118,7 +119,7 @@ export class FindWidget extends Widget implements IOverlayWidget {
118
119
if ( WIDGET_FIXED_WIDTH + 28 >= editorWidth ) {
119
120
narrowFindWidget = true ;
120
121
}
121
- if ( WIDGET_FIXED_WIDTH + MAX_MATCHES_COUNT_WIDTH + 28 >= editorWidth ) {
122
+ if ( WIDGET_FIXED_WIDTH + MAX_MATCHES_COUNT_WIDTH + 28 + minimapWidth >= editorWidth ) {
122
123
reducedFindWidget = true ;
123
124
}
124
125
dom . toggleClass ( this . _domNode , 'collapsed-find-widget' , collapsedFindWidget ) ;
You can’t perform that action at this time.
0 commit comments