File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/vs/editor/contrib/rename/browser Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -501,9 +501,11 @@ class CandidatesView {
501
501
502
502
this . _listWidget . splice ( 0 , 0 , candidates ) ;
503
503
504
- this . _listWidget . layout ( height , this . _pickListWidth ( candidates ) ) ;
504
+ const width = Math . max ( 200 , 4 /* padding */ + 16 /* sparkle icon */ + 5 /* margin-left */ + this . _pickListWidth ( candidates ) ) ; // TODO@ulugbekna : approximate calc - clean this up
505
+ this . _listWidget . layout ( height , width ) ;
505
506
506
507
this . _listContainer . style . height = `${ height } px` ;
508
+ this . _listContainer . style . width = `${ width } px` ;
507
509
}
508
510
509
511
public clearCandidates ( ) : void {
@@ -577,7 +579,7 @@ class CandidatesView {
577
579
}
578
580
579
581
private _pickListWidth ( candidates : NewSymbolName [ ] ) : number {
580
- return Math . max ( ...candidates . map ( c => c . newSymbolName . length ) ) * 7 /* approximate # of pixes taken by a single character */ ;
582
+ return Math . ceil ( Math . max ( ...candidates . map ( c => c . newSymbolName . length ) ) * 7.2 ) /* approximate # of pixes taken by a single character */ ;
581
583
}
582
584
583
585
}
You can’t perform that action at this time.
0 commit comments