fix table designer issues (#18988)

* fix table designer issues

* commit change on blur

* new sts
This commit is contained in:
Alan Ren
2022-04-10 12:09:33 -07:00
committed by GitHub
parent 9fcfe5b23c
commit fe1aefdd5f
5 changed files with 13 additions and 5 deletions

View File

@@ -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) {

View File

@@ -17,3 +17,8 @@
width: 100%;
overflow: hidden;
}
.monaco-dropdown .monaco-inputbox {
width: 100%;
height: 100%;
}

View File

@@ -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);