File tree 1 file changed +3
-3
lines changed
src/vs/editor/contrib/suggest
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -170,13 +170,13 @@ export class SuggestWidget implements IDisposable {
170
170
if ( e . done ) {
171
171
// only store width or height value that have changed and also
172
172
// only store changes that are above a certain threshold
173
- const threshold = Math . floor ( this . getLayoutInfo ( ) . itemHeight / 3 ) ;
173
+ const threshold = Math . floor ( this . getLayoutInfo ( ) . itemHeight / 2 ) ;
174
174
let { width, height } = this . element . size ;
175
175
if ( persistedSize && currentSize ) {
176
- if ( ! persistHeight || Math . abs ( currentSize . height - height ) > threshold ) {
176
+ if ( ! persistHeight || Math . abs ( currentSize . height - height ) <= threshold ) {
177
177
height = persistedSize . height ;
178
178
}
179
- if ( ! persistWidth || Math . abs ( currentSize . width - width ) > threshold ) {
179
+ if ( ! persistWidth || Math . abs ( currentSize . width - width ) <= threshold ) {
180
180
width = persistedSize . width ;
181
181
}
182
182
}
You can’t perform that action at this time.
0 commit comments