mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-24 09:35:37 -05:00
fixed several model view issues (#1640)
* fixed several model view issues
This commit is contained in:
@@ -55,8 +55,6 @@ export default class ButtonComponent extends ComponentBase implements IComponent
|
||||
|
||||
ngAfterViewInit(): void {
|
||||
if (this._inputContainer) {
|
||||
|
||||
|
||||
this._button = new Button(this._inputContainer.nativeElement);
|
||||
|
||||
this._register(this._button);
|
||||
@@ -94,6 +92,12 @@ export default class ButtonComponent extends ComponentBase implements IComponent
|
||||
super.setProperties(properties);
|
||||
this._button.enabled = this.enabled;
|
||||
this._button.label = this.label;
|
||||
if (this.width) {
|
||||
this._button.setWidth(this.width.toString());
|
||||
}
|
||||
if (this.height) {
|
||||
this._button.setWidth(this.height.toString());
|
||||
}
|
||||
this.updateIcon();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user