mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Fix query database drop-down rendering location after resize (#16567)
* Fix query database drop-down rendering location after resize * Revert "Fix query database drop-down rendering location after resize" This reverts commit 62481a93e696d4fa79ce40ecef3a2567a65dd20c. * Fixes drop down list rendering issues by closing the list on window resize * comment providing the explanation for new listener and checks if list is visible before hiding
This commit is contained in:
@@ -136,6 +136,16 @@ export class Dropdown extends Disposable implements IListVirtualDelegate<string>
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/*
|
||||||
|
This event listener is intended to close the expanded drop down when the ADS shell window is resized
|
||||||
|
to prevent the list from rendering incorrectly at the top left corner of the window.
|
||||||
|
*/
|
||||||
|
this._register(DOM.addDisposableListener(window, DOM.EventType.RESIZE, () => {
|
||||||
|
if (this._isDropDownVisible) {
|
||||||
|
this._hideList();
|
||||||
|
}
|
||||||
|
}));
|
||||||
|
|
||||||
this._register(DOM.addStandardDisposableListener(this._input.inputElement, DOM.EventType.KEY_DOWN, (e: StandardKeyboardEvent) => {
|
this._register(DOM.addStandardDisposableListener(this._input.inputElement, DOM.EventType.KEY_DOWN, (e: StandardKeyboardEvent) => {
|
||||||
switch (e.keyCode) {
|
switch (e.keyCode) {
|
||||||
case KeyCode.Enter:
|
case KeyCode.Enter:
|
||||||
|
|||||||
Reference in New Issue
Block a user