mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-20 01:25:37 -05:00
fix table designer issues (#18988)
* fix table designer issues * commit change on blur * new sts
This commit is contained in:
@@ -101,9 +101,11 @@ export class Dropdown extends Disposable implements IListVirtualDelegate<string>
|
||||
|
||||
this._el = DOM.append(container, DOM.$('.monaco-dropdown'));
|
||||
this._el.style.width = '100%';
|
||||
this._el.style.height = '100%';
|
||||
|
||||
this._inputContainer = DOM.append(this._el, DOM.$('.dropdown-input.select-container'));
|
||||
this._inputContainer.style.width = '100%';
|
||||
this._inputContainer.style.height = '100%';
|
||||
this._selectListContainer = DOM.$('div');
|
||||
|
||||
this._input = new InputBox(this._inputContainer, contextViewService, {
|
||||
@@ -166,7 +168,6 @@ export class Dropdown extends Disposable implements IListVirtualDelegate<string>
|
||||
this._input.validate();
|
||||
this._onBlur.fire();
|
||||
this._hideList();
|
||||
e.stopPropagation();
|
||||
break;
|
||||
case KeyCode.DownArrow:
|
||||
if (!this._isDropDownVisible) {
|
||||
|
||||
@@ -17,3 +17,8 @@
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.monaco-dropdown .monaco-inputbox {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
@@ -152,6 +152,9 @@ export class TableCellEditorFactory {
|
||||
this._component.onValueChange(async () => {
|
||||
await this.commitEdit();
|
||||
});
|
||||
this._component.onBlur(async () => {
|
||||
await this.commitEdit();
|
||||
});
|
||||
} else {
|
||||
this._component = new SelectBox([], undefined, self._contextViewProvider);
|
||||
this._component.render(container);
|
||||
|
||||
Reference in New Issue
Block a user