File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/vs/platform/quickinput/browser Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -938,15 +938,18 @@ class QuickInputDragAndDropController extends Disposable {
938
938
}
939
939
940
940
private _registerLayoutListener ( ) {
941
- this . _layoutService . onDidLayoutActiveContainer ( ( e ) => {
941
+ this . _layoutService . onDidLayoutContainer ( ( e ) => {
942
+ if ( e . container !== this . _container ) {
943
+ return ;
944
+ }
942
945
const state = this . dndViewState . get ( ) ;
943
946
const dragAreaRect = this . _quickInputContainer . getBoundingClientRect ( ) ;
944
947
if ( state ?. top && state ?. left ) {
945
948
const a = Math . round ( state . left * 1e2 ) / 1e2 ;
946
- const b = e . width ;
949
+ const b = e . dimension . width ;
947
950
const c = dragAreaRect . width ;
948
951
const d = a * b - c / 2 ;
949
- this . _layout ( state . top * e . height , d ) ;
952
+ this . _layout ( state . top * e . dimension . height , d ) ;
950
953
}
951
954
} ) ;
952
955
}
You can’t perform that action at this time.
0 commit comments